15. Notification

The Cordova Notification API provides methods that allow an application to provide feedback to a user visually (through pop-up alerts) and through tactile or audible feedback. The methods supported by this API are:






An application would use this API to interact with the user outside of the application’s main screens. Alert is used to draw the user’s attention to something beyond the ordinary. Beep and Vibrate are used to provide some extra feedback about something’s that happened or is about to happen.

To add the alert, beep, confirm and prompt capabilities to your application, open a terminal window, navigate to the project ...

Get Apache Cordova API Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.