{{deprecated_header()}}{{APIRef("Push API")}}
Returns an interface to register or unregister a push registration, get an active registration, or check the permission status of the registration.
Methods
- {{domxref("PushRegistrationManager.register()")}}
- Returns a promise that resolves to a {{domxref("PushRegistration")}} with details of a new registration.
- {{domxref("PushRegistrationManager.unregister()")}}
- Returns a promise that resolves to a {{domxref("PushRegistration")}} with details of the unregistered registration.
- {{domxref("PushRegistrationManager.getRegistration()")}}
- Returns a promise that resolves the {{domxref("PushRegistration")}} associated with the current webapp.
- {{domxref("PushRegistrationManager.hasPermission()")}}
- Returns a promise that resolves to the {{domxref("PushPermissionStatus")}} of the requesting webapp.
-
Example
//
Specifications
Specification Status Comment {{SpecName('Push API', '#idl-def-PushRegistrationManager', 'PushRegistrationManager')}} {{Spec2('Push API')}} Initial definition.
Browser Compatibility
{{CompatibilityTable}}Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit) Basic support {{CompatChrome(42.0)}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} Feature Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatChrome(42.0)}}