我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Returns an interface to register or unregister a push registration, get an active registration, or check the permission status of the registration. This interface has been superceded by PushManager
.
Methods
PushRegistrationManager.register()
- Returns a promise that resolves to a
PushRegistration
with details of a new registration. PushRegistrationManager.unregister()
- Returns a promise that resolves to a
PushRegistration
with details of the unregistered registration. PushRegistrationManager.getRegistration()
- Returns a promise that resolves the
PushRegistration
associated with the current webapp. PushRegistrationManager.hasPermission()
- Returns a promise that resolves to the
PushPermissionStatus
of the requesting webapp.
Specifications
Specification | Status | Comment |
---|---|---|
Push API The definition of 'PushRegistrationManager' in that specification. |
Working Draft | Initial definition |
Browser Compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 42.0 | ? | ? | ? | ? |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? | ? | 42.0 |