Push notifications are messages sent directly to your app’s users. They notify users of new content, even when the user is not using your application. They increase user engagement and retention in your app. An example is the WhatsApp “whistle” that notifies you of new messages received. In this tutorial, we’ll dive into integrating push notifications into your Ionic app using OneSignal.
How push notifications work
A push notification is sent from the Push notification platform of the mobile OS: Apple’s Push Notification Service for iOS and Google Cloud Messaging for Android. These push notification services relay the message to the devices that have subscribed to them.
This means that you need to keep track of all the devices that have subscribed for push notifications. But there are some great services out there to simplify the process. One such service is OneSignal.
Step 1: Install Ionic
To start off with, you need to have Ionic installed on your machine. You install it using the node package manager npm;
$ npm install -g ionic
If you do not have npm installed, follow the instructions in the References section to install it.
Continue reading %Push Notifications in Your Ionic App with OneSignal%