notifications.getAll()

Gets the set of all current notifications created by the add-on.

Syntax

browser.notifications.getAll(
  function(notifications) {...}
)

Parameters

callback
function. The function is passed the following arguments:
notifications
object or array. In Firefox this is an array of strings, each of which is the ID of a currently active notification. In Chrome it is an object with one property for each active notification, whose name is the ID of that notification and whose value is true.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic support48.0

Examples

Acknowledgements

This API is based on Chromium's chrome.notifications API.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,