Closed felixhagspiel closed 6 years ago
@felixhagspiel i have the same issue, what was your solution?
@LKDevelopment as far as I see it, in order to be able to correctly use it on android you have to register your app on google to allow the service worker to run in background. It only works on desktop when the apps tab is open. You can check the google tutorial: https://developers.google.com/web/fundamentals/codelabs/push-notifications/
I have not tried this yet, as we have more important things to solve atm. For now I disabled push notifications on android.
Hello, first thanks for your great work!
Currently I am facing an issue where notifications are displayed on Chrome/Android, but on notification click nothing happens (error on console).
When I inspect my mobile device via chrome dev tools & click the notification, I get the error:
VM29:2 Uncaught ReferenceError: e is not defined at eval (eval at runFunctionString (serviceWorker.min.js:1), <anonymous>:2:14) at runFunctionString (serviceWorker.min.js:1) at self.onnotificationclick (serviceWorker.min.js:1)
My site is running on HTTPS and I am using version 1.0.5.
This is how I create the notification (I am using reactJS):
Chrome on Mac / Desktop is working fine. Am I missing something here?