phonegap/Cordova Plugin for Pushbots
PushBots' official module for Phonegap/Cordova
Installation
cordova plugin add pushbots-cordova-plugin --save
Usage
- Intialize Pushbots in deviceReady section:
Firebase credentials: https://www.pushbots.help/en/articles/498201-the-google-part-firebase-credentials
windowpluginsPushbotsPlugin; // Only with First time registrationwindowpluginsPushbotsPlugin; //Get user registrationId/token and userId on PushBots, with evey launch of the app even launching with notificationwindowpluginsPushbotsPlugin;
- Methods to use it:
windowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin; //Add or remove Single tagwindowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin; //Add or remove array of tagswindowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin; windowpluginsPushbotsPlugin; //Track eventwindowpluginsPushbotsPlugin; //ShareLocation with promptingwindowpluginsPushbotsPlugin;//Sharelocation without promptingwindowpluginsPushbotsPlugin;//Set log level with alertwindowpluginsPushbotsPlugin;//set log level without alertwindowpluginsPushbotsPlugin; //unsubscribe user from receiving notificationswindowpluginsPushbotsPlugin; //iOS only //Reset BadgewindowpluginsPushbotsPlugin;//Set badgewindowpluginsPushbotsPlugin;//Increment badge countwindowpluginsPushbotsPlugin;//Decrement badge countwindowpluginsPushbotsPlugin;
- To handle Notification events:
// Should be called once app receive the notification [foreground/background]windowpluginsPushbotsPlugin; windowpluginsPushbotsPlugin; windowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin;windowpluginsPushbotsPlugin;
Phonegap [DEPRECARTED]
https://blog.phonegap.com/update-for-customers-using-phonegap-and-phonegap-build-cc701c77502c