Ionic PushNotification Plugin
Provides a simple way to get the mobile API Key for Android and iOS. It's a wrapper for cordova push Notification Plugin.
Usage
In the browser
To use this plugin in the browser, include it in your HTML page:
You can also download it from Bower:
bower install ionic-push-notification
API
Config
Overview
pushNotification.setConfig(config)
Set Plugin configuration for push initialisation.
Example:
myApp;
pushNotification.register()
Register the device. It call the classical push plugin init function. It return the push instance.
Example:
pushNotification;
pushNotification.getDeviceToken()
Get the device push token of user when is registred.
Example:
pushNotification;