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:

notification.alert

notification.beep

notification.confirm

notification.prompt

notification.vibrate

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 O’Reilly online learning.

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