I am currently facing a problem with some versions of Chrome (Chromium), where the promise of ServiceWorker’s PushManager.subscribe .
The code itself is pretty simple:
return serviceWorkerRegistration.pushManager.subscribe({ userVisibleOnly: true });
I have a valid and accessible JSON manifest that provides the GCM sender id . I also tried various implementations as described in this post , but the result is still the same.
Part of the subscription works well with each version 47+ , a problem appears with older versions. (I use Chromium's continuous builds to test various major versions).
Also note that using Chromium 46 (and below) on Ubuntu, the promise is rejected after 15 minutes with Internal Server Error .
javascript web-push push-api service-worker chrome-gcm
Arturo
source share