onesignal-silent-cordova-plugin
v2.3.1
Published
OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, A/B test, and automate notifications that you send.
Downloads
9
Maintainers
Readme
OneSignal Cordova Push Notification Plugin
This is a plugin based on onesignal-cordova-plugin. Please visit their repository for help with everything except the unique functionality I provide.
This plugin allows you to send background notifications on Android. To accomplish this, you must add "content_available": true
to the data object on your notification. If the app is open when this notification is received, handleNotificationReceived
will be called with the argument being a JSON object j
such that j['payload']['additionalData']
is the data object you sent. No visible notification will be shown as long as the notification has no title or content.