Skip to content

Commit 967f3e7

Browse files
Added interruption_level to payload
1 parent 7d4e6d9 commit 967f3e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/tools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { Notification: ApnsMessage } = require('@parse/node-apn');
33
const { Message: GcmMessage } = require('node-gcm');
44

55
const { DEFAULT_TTL, GCM_MAX_TTL } = require('../constants');
6+
const { interruptionLevel } = require('@parse/node-apn/lib/notification/apsProperties');
67

78
const ttlFromExpiry = R.compose(
89
R.min(GCM_MAX_TTL),
@@ -164,6 +165,7 @@ const buildApnsMessage = (data) => {
164165
mutableContent: data.mutableContent || 0,
165166
threadId: data.threadId,
166167
pushType: data.pushType,
168+
interruptionLevel: data.interruptionLevel,
167169
});
168170

169171
if (data.rawPayload) {

0 commit comments

Comments
 (0)