An example Cordova app with the OneSignal plugin intergated showing how to use each of it's functions.
- To build the example first run
cordova platform add android
andr/orcordova platform add ios
. - Open
www\js\index.js
and update"b2f7f966-d8cc-11e4-bed1-df8f05be55ba"
with your OneSignal App Id. - Build then run the app on your device.
To add the OneSignal to your Cordova project run the following.
cordova plugin add onesignal-cordova-plugin --save
See the OneSignal Cordova SDK Setup Guide for the full installation guide.