Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

MozAlarmsManager.remove()

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

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

Syntax

navigator.mozAlarms.remove(id);

Properties

id
A number representing the id of the alarm to be removed.

Return

None.

Example

var request = navigator.mozAlarms.getAll();

request.onsuccess = function () {
  // Remove all pending alarms
  this.result.forEach(function (alarm) {
    navigator.mozAlarms.remove(alarm.id);
  });
}

request.onerror = function () {
  console.log('operation failed: ' + this.error);
}

Specification

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 No support No support No support No support No support
Feature Android Firefox OS Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support 1.0[1] No support No support No support No support

[1] 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: teoli, chrisdavidmills, Sebastianz, kscarfone, Gene, Sheppy, Jeremie
 Last updated by: teoli,