Cordova Version:

Dialogs Plugin

Tested Version: 1.3.3

Note

This document is based on the original Cordova docs available at Cordova Docs.

This plugin provides access to some native dialog UI elements via a global navigator.notification object. Although the object is attached to the global scoped navigator, it is not available until after the deviceready event.

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    console.log(navigator.notification);
}

Plugin ID

cordova-plugin-dialogs

Adding the Plugin in Monaca

In order to use this plugin, please enable Notification plugin in Monaca Cloud IDE.

Methods

  • navigator.notification.alert
  • navigator.notification.confirm
  • navigator.notification.prompt
  • navigator.notification.beep