- 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.
See our Ionic v1 branch if you are still mantaining an older project.
See OneSignal's Ionic SDK Setup guide for full instructions on adding to your existing project.