GitHub - mrosama/AlarmPlugin: Cordova plugin to wake up Android devices

Skip to content

Navigation Menu

Sign in

Appearance settings

AlarmPlugin

Alarm plugin for Cordova/PhoneGap.

To install the plugin:

cordova plugins add https://github.com/uniclau/AlarmPlugin.git

To invoke the plugin:

navigator.plugins.alarm.set(alarmDate, 
function(){
  // SUCCESS
}, 
function(){
  // ERROR
})

alarmDate is the date that the application will wake up. This will happen even if the device has been rebooted.

The second and third parameters are the callbacks to handle the success or failure of the call, respectively.

Languages

  • Java 94.6%
  • JavaScript 5.4%