I am currently facing an issue with some Chrome (Chromium) version where the PushManager.subscribe
promise from a ServiceWorker stays in a pending state.
The code itself is pretty simple :
return serviceWorkerRegistration.pushManager.subscribe({
userVisibleOnly: true
});
I have a valid and accessible JSON manifest, providing the GCM Sender ID. I also tried different implementations, as described in this post, but the result is still the same.
The subscription part works well with every 47+ version, the issue appears with older releases. (I'm using Chromium continuous builds to test the different major versions).
Also note that, while using Chromium 46 (and below) on Ubuntu, the promise rejects after 15 minutes with an Internal Server Error
.