Local notifications

The next plugin we are going to work with is the local notification plugin. This plugin is primarily used to notify or remind users about an activity related to an app. Sometimes, notifications are also shown when a background activity is going on such as, a large file upload.

You can learn more about the plugin from here: https://github.com/katzer/cordova-plugin-local-notifications and https://ionicframework.com/docs/native/local-notifications/.

First, scaffold a new blank app for the local notification plugin:

ionic start -a "Example 19" -i app.example.nineteen example19 blank --v2

Once the app is scaffolded, cd into the example19 folder. Now, we will add the local notification plugin, run the following command:

Get Learning Ionic - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.