I have recently been trying to implement some push notifications in my app through chrome’s cloud messaging service. They have some awesome write-ups online about how to implement this in the chrome browser. I assumed this should work very similar in Electron. So I tested my code in Electron (0.32.2) and unfortunately I keep getting a DOM error stating :
Unable to subscribe to push. DOMException: Registration failed - push service not available
Seems like it makes sense but, when I visit chrome://serviceworker-internals within Electron, it sats my service worker is ACTIVATED and RUNNING.
Also, I have checks within my code to verify that push services and the service worker are ready to go.
After I first received this error I tried running my code within a regular chrome browser and it worked flawlessly. So, that fortifies the fact that Electron doesn’t like something about Google Cloud Messaging.
If anyone could offer any sort of advice on to why Electron is having an issue with this implementation of push notifications, I would greatly appreciate it. Thanks in advance for the help!