Version: Smart Feature Phone 2.5


The getAll method is used to retrieve a list of pending alarms.


var request = navigator.mozAlarms.getAll();


A DOMRequest object to handle the success or failure of the method call.

If the method call is successful, the request's result will be an array of mozAlarm objects.


Those objects are anonymous JavaScript objects with the following properties:

  • id - A number representing the id of the alarm

  • date - A Date object representing the scheduled time for the alarm

  • respectTimezone - A string indicating if the alarm must respect or ignore the timezone information of the date object. Its value can be ignoreTimezone or honorTimezone

  • data - A JavaScript object contaning any data that were stored with the alarm


var request = navigator.mozAlarms.getAll();
request.onsuccess = function() {
console.log('operation successful:' + this.result.length + 'alarms pending');
this.result.forEach(function(alarm) {
console.log( + ' : ' + + ' : ' + alarm.respectTimezone
request.onerror = function() {
console.log('operation failed: ' + this.error);