Awesome Open Source
Awesome Open Source

OneSignal Cordova Example

An example Cordova app with the OneSignal plugin intergated showing how to use each of its functions.

Trying the Example Out!

  1. To build the example first run cordova platform add android and/or cordova platform add ios.
  2. Open www\js\index.js and replace "3beb3078-e0f1-4629-af17-fde833b9f716" with your OneSignal App Id.
  3. Build and run the app on your device with cordova run android or cordova run ios.

Installing in Your Own Project

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.

Using Ionic instead?

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Ionic (1,654
Cordova (1,258
Cordova Plugin (377
Related Projects