browser.alarms

Description

Use the chrome.alarms API to schedule code to run periodically or at a specified time in the future.

Permissions

alarms

To use the browser.alarms API, declare the "alarms" permission in the manifest:

{
  "name": "My extension",
  ...
  "permissions": [
    "alarms"
  ],
  ...
}

Concepts and usage

To ensure reliable behavior, it is helpful to understand how the API behaves.

Device sleep