Official Push adapter for parse-server
The official Push Notification adapter for Parse Server. See Parse Server Push Configuration for more details.
If you have migrated from parse.com and you are seeing situations where silent (newsstand-like presentless) notifications are failing to deliver please ensure that your payload is setting the content-available attribute to Int(1) and not "1" This value will be explicitly checked.
You can enable verbose logging with environment variables:
VERBOSE=1
or
VERBOSE_PARSE_SERVER_PUSH_ADAPTER=1
This will produce a more verbose output for all the push sending attempts
npm install --save @parse/push-adapter@<VERSION>
Replace <VERSION>
with the version you want to install.
const PushAdapter = require('@parse/push-adapter').default;
const parseServerOptions = {
push: {
adapter: new PushAdapter({
ios: {
/* Apple push notification options */
},
android: {
/* Android push options */
}
})
},
/* Other Parse Server options */
}