pushpole-cordova
v1.7.2
Published
PushPole plugin for Cordova
Downloads
9
Readme
PushPole Cordova Module
This is a plugin for PushPole android library for Cordova and other Cordova-base users (like Ionic and PhoneGap) which enables them to integrate PushPole into their applications. PushPole Cordova module is base on PushPole Native Module v1.7.2 and Already just works for android.
How to use this plugin
- First, Create your app using Ionic/Cordova CLI tool and add android platform to it using following command:
cordova platform add android
- Add PushPole cordova Plugin to your app
cordova plugin add pushpole-cordova
Login to your panel on console.push-pole.com and create a new application with the package name of your ionic/cordova app.
Edit config.xml file in your app folder and replace "PUSHPOLE_TOKEN" with the token of your app.
Add below line to your app's index.js file. You can find this file in www/js/index.js directory
window.pushpole.initialize();
- Then build and run your app using below command. You should see PushPole initialization logs in android log-cat (if your device is connected to your computer with usb cable) and one new installation will appear in your panel on pushpole in a few seconds. You can now send push notifications to your app
cordova run android
For more information read the documentation.