Your Search Results


    This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.

    This API is available on Firefox or Firefox OS for installed or higher privileged applications.


    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:

    A number representing the id of the alarm
    A Date object representing the scheduled time for the alarm
    A string indicating if the alarm must respect or ignore the timezone information of the date object. Its value can be ignoreTimezone or honorTimezone
    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);


    Specification Status Comment
    Web Alarms API Working Draft Defines the AlarmManager interface.

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
    Basic support Not supported Not supported Not supported Not supported Not supported
    Feature Android Firefox OS Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support Not supported 1.0 Not supported Not supported Not supported Not supported

    Gecko implementation note

    This API is currently available on Firefox OS only for any installed applications. The current specification for this API is not considered stable enough to unprefix the API yet.

    See also

    Document Tags and Contributors

    Contributors to this page: Sheppy, Jeremie, teoli, kscarfone, Gene
    Last updated by: teoli,