We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d4e6d9 commit 967f3e7Copy full SHA for 967f3e7
src/utils/tools.js
@@ -3,6 +3,7 @@ const { Notification: ApnsMessage } = require('@parse/node-apn');
3
const { Message: GcmMessage } = require('node-gcm');
4
5
const { DEFAULT_TTL, GCM_MAX_TTL } = require('../constants');
6
+const { interruptionLevel } = require('@parse/node-apn/lib/notification/apsProperties');
7
8
const ttlFromExpiry = R.compose(
9
R.min(GCM_MAX_TTL),
@@ -164,6 +165,7 @@ const buildApnsMessage = (data) => {
164
165
mutableContent: data.mutableContent || 0,
166
threadId: data.threadId,
167
pushType: data.pushType,
168
+ interruptionLevel: data.interruptionLevel,
169
});
170
171
if (data.rawPayload) {
0 commit comments