Open j1mr10rd4n opened 5 years ago
The sample code in the Send a subscription to your server section contains the following snippet:
const subscriptionObject = { endpoint: pushSubscription.endpoint, keys: { p256dh: pushSubscription.getKeys('p256dh'), auth: pushSubscription.getKeys('auth') } };
However, there is no getKeys method on PushSubscription. The correct method call is getKey(name)
getKeys
getKey(name)
The sample code in the Send a subscription to your server section contains the following snippet:
However, there is no
getKeys
method on PushSubscription. The correct method call isgetKey(name)