I am using Firefox Nightly version 46.0a1 (only 42v for OS X and 43v for the Push API). And I get this error:
DOMException [AbortError: "Error retrieving push subscription"
code: 20
nsresult: 0x80530014]
Here is a snippet where this throw error is:
navigator.serviceWorker.ready.then(function (serviceWorkerRegistration) {
serviceWorkerRegistration.pushManager.subscribe()
.then(function (subscription) {
endpoint = subscription.endpoint;
console.log('subscription endpoint: ', subscription.endpoint);
subscribeOnServer();
})
.catch(function (e) {
errorNotification.innerHTML = 'Unable to subscribe to push';
}
});
});
in Chrome, this place doesn't throw anything, and I get a subscription with the correct endpoint.
Please, help
source
share