OneSignal-Ionic-Sample
OneSignal-Ionic-Sample copied to clipboard
OneSignal Ionic 2+ Example
- To build the example first run
ionic cordova platform add android
orionic cordova platform add ios
. - Next run
ionic cordova plugin add onesignal-cordova-plugin
- Open
src/app/app.component.ts
and update"5c9ca215-e7c5-4214-8a45-6f2e1b84c12f"
with your OneSignal App Id. - Build then run the app on your device.
Ionic v1 Example
See our Ionic v1 branch if you are still mantaining an older project.
Full Setup Guide
See OneSignal's Ionic SDK Setup guide for full instructions on adding to your existing project.