const key = subscription.getKey("p256dh");
const token = subscription.getKey("auth");
- const contentEncoding = (PushManager.supportedContentEncodings || ["aesgcm"])[0];
+ // aes128gcm must be supported from browser
+ // @see https://w3c.github.io/push-api/#dom-pushmanager-supportedcontentencodings
+ const contentEncoding = (PushManager.supportedContentEncodings || ["aes128gcm"])[0];
try {
await prepareRequest(this.registerUrl)
}
const key = subscription.getKey("p256dh");
const token = subscription.getKey("auth");
- const contentEncoding = (PushManager.supportedContentEncodings || ["aesgcm"])[0];
+ // aes128gcm must be supported from browser
+ // @see https://w3c.github.io/push-api/#dom-pushmanager-supportedcontentencodings
+ const contentEncoding = (PushManager.supportedContentEncodings || ["aes128gcm"])[0];
try {
await (0, Backend_1.prepareRequest)(this.registerUrl)
.post({