Skip to content

OneSignalDevelopers/OneSignal-Ionic-Sample

Repository files navigation

OneSignal Ionic 2+ Example

  1. To build the example first run ionic cordova platform add android or ionic cordova platform add ios.
  2. Next run ionic cordova plugin add onesignal-cordova-plugin
  3. Open src/app/app.component.ts and update "5c9ca215-e7c5-4214-8a45-6f2e1b84c12f" with your OneSignal App Id.
  4. 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.