• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozAlarmsManager

MozAlarmsManager

In This Article
  1. Syntax
  2. Properties
  3. Methods
  4. Specification
  5. Browser compatibility
  6. See also

Obsolete since Gecko 51 (Firefox 51 / Thunderbird 51 / SeaMonkey 2.48)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

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

The MozAlarmsManager API allows to schedule notifications or applications to be started at a specific time.

Syntax

interface MozAlarmsManager
{
  DOMRequest getAll();
  DOMRequest add(Date date, DOMString respectTimezone, optional object data);
  void remove(unsigned long id);
};

Properties

None.

Methods

MozAlarmsManager.getAll()
Gets the list of all alarms currently scheduled.
MozAlarmsManager.add()
Allows to schedule a new alarm.
MozAlarmsManager.remove()
Allows to remove an existing alarm.

Specification

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

Browser compatibility

  • Desktop
  • Mobile
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

  • Navigator.mozAlarms

Document Tags and Contributors

Tags: 
  • alarm
  • API
  • B2G
  • Firefox OS
  • Non-standard
  • Reference
  • WebAPI
 Contributors to this page: chrisdavidmills, teoli, Sebastianz, sayanchowdhury, Gene, kscarfone, Sheppy, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:33:42 AM
See also
  1. Alarm API
  2. Archive
  3. Related pages for Alarm API
    1. MozAlarmsManager
    2. Navigator.mozSetMessageHandler()