Abakus Baily - 2021-10-15 11:20:24
Hello and thank you very much for sharing this package with us.
I'm trying to get your example script running but have the following problem:
The subscription at "PNTestClient.html" works fine. I got the following notes:
"PUSH Notifications are subscribed
Secure context: true
The console says: "Registration succeeded. Scope is https://mydomain.de/"
At "PNTestServer.php" it says following:
"Count of subscriptions: 0
no valid Subscriptions set!"
So the registration is not noticed by the server. So I started debugging and the following steps should get triggered in sequence:
1) Pushing the button "Subscribe PUSH Notifications"
2) call pnSubscribe()
3) Grant notifications in browser
4) call pnRegisterSW()
5) call "PNServiceWorker.js"
6) trigger event "activate"
But step no 6 isn't working because the event "activate" is not triggered. So I added the line "console.log("call PNServiceWorker.js");" at the beginning of the file "PNServiceWorker.js" to check if the file itself is running. But there is no console message so the "PNServiceWorker.js" isn't even running.
Do you have a clue, what could be wrong?
Thank you very much