Skip to content

OneSignalDevelopers/OneSignal-Cordova-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?