api.PushManager.subscribe

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 42 on 2015-04-14 Note: The options parameter with a applicationServerKey value is required.

In Chrome Android version 42 on 2015-04-15 Note: The options parameter with a applicationServerKey value is required.

In Edge version 17 on 2018-04-30 Note: The options parameter with a applicationServerKey value is required.

In Firefox version 44 on 2016-01-26 Note: From Firefox 72 onwards, can only be called in response to a user gesture such as a click event.

In Firefox for Android version 48 on 2016-08-02 Note: From Firefox Android 79 onwards, can only be called in response to a user gesture such as a click event.

Not in Internet Explorer

In Quest Browser version 5.0 on undefined Note: The options parameter with a applicationServerKey value is required.

In Opera version 29 on 2015-04-28

In Opera Android version 29 on 2015-04-28 Note: The options parameter with a applicationServerKey value is required.

In Safari version 16 on 2022-09-12 Note: Notifications are supported on macOS Ventura and later.

In Safari on iOS version 16.4 on 2023-03-27 Note: Notifications are supported in web apps saved to the home screen.

In Samsung Internet version 4.0 on 2016-03-11 Note: The options parameter with a applicationServerKey value is required.

Not in WebView Android

Not in WebView on iOS Note: Notifications are supported in web apps saved to the home screen.