Answer the question
In order to leave comments, you need to log in
Why does Google Cloud Message send one push message?
Tell me why Google Cloud Message sends one push message.
Through js, I make a request to receive registrationID, save it and send a message via PHP script, but the message is sent that is written in service-worker.js and not what I send from PHP.
Even if you change the text in service-worker.js and send it again, the message will be the one that was at the time the registrationID was received
Answer the question
In order to leave comments, you need to log in
GCM in web pushes does not send payload, it needs to be loaded from the server. And you also have sw hanging in the work mode, it will not be updated until you open the page where the new service worker is loaded and close all pages with this worker.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question