Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 531 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 531 Bytes

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.