issues
search
DivertiseAsia
/
bs-service-worker
MIT License
0
stars
0
forks
source link
Support PushManager
#8
Open
hunterwilliams
opened
4 years ago
hunterwilliams
commented
4 years ago
PushSubscriptionOptions
Type for it (reused later) -
https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options
userVisibleOnly bool
applicationServerKey arrayBuffer
PushSubcription
Type for it (reused later) -
https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription
endpoint property (string)
expirationTime property (date???) -
https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/expirationTime
options property (PushSubscriptionOptions)
unsubscribe function (promise:bool) -
https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/unsubscribe
getKey function (ArrayBuffer Firefox only???) -
https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/getKey
PushManager
PushManager on Service Worker
Registration
-
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager
Add type for PushManager with methods
https://developer.mozilla.org/en-US/docs/Web/API/PushManager
permissionState(PushSubscriptionOptions) promise:string
https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState
subscribe(PushSubscriptionOptions) promise:PushSubscription
https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe
supportedContentEncodings called on PushManager (on browser) directly.
supportedContentEncodings property(array)
https://developer.mozilla.org/en-US/docs/Web/API/PushManager/supportedContentEncodings
PushSubscriptionOptions
PushSubcription
PushManager