The push plugin provides an abstraction layer over the
A notification can be sent to a device registered with an application through a rest call at
http://SMP_3.0_SERVER:8080/Notifications/application_registration_id
Adding and Removing the Push Plugin
The Push plugin is added and removed using the Cordova CLI.
To add the Push plugin to your project, use the following command:
cordova plugin add <path to directory containing Kapsel plugins>\push
To remove the Push plugin from your project, use the following command:
cordova plugin rm com.sap.mp.cordova.plugins.push
| Name | Description |
| checkForNotification( callback ) | This method checks for any notifications received while the application was not running in the foreground. |
| getBadgeNumber( callback ) | Used to fetch the badge count for the application. |
| registerForNotificationTypes( types, successCallback, errorCallback, notificationlistenerfunc, [senderId] ) | Function called by the application to register notification types to receive. |
| resetBadge( callback ) | Used to reset the badge count for the application. |
| setBadgeNumber( number, callback ) | Used to set the badge count for the application. |
| unregisterForNotificationTypes( callback ) | Function called by the application to unregister from future notifications. |
| Name | Description |
| callback( [devtok] ) | This method updates the application with the new device token in the SAP Mobile Platform server. |