diff --git a/lib/server/loop.js b/lib/server/loop.js index 83a488ef72d..3b31c0ec78c 100644 --- a/lib/server/loop.js +++ b/lib/server/loop.js @@ -1,6 +1,6 @@ //'use strict'; -const apn = require('apn'); +const apn = require('@parse/node-apn'); function init (env, ctx) { @@ -128,6 +128,7 @@ function init (env, ctx) { notification.topic = loopSettings.bundleIdentifier; notification.contentAvailable = 1; notification.payload = payload; + notification.interruptionLevel = "time-sensitive" provider.send(notification, [loopSettings.deviceToken]).then( (response) => { if (response.sent && response.sent.length > 0) {