Closed jhonathas closed 6 years ago
See my PR, #6
This one can be closed now, I guess. @jhonathas can you confirm it's working for you?
I will close, please comment here if it still does not work.
@arjan @tuvistavie
It worked perfectly: D Thank you very much.
You're welcome!
Hello,
I tried to use the dependency but it gives an error of UnauthorizedRegistration. Should I be able to pass the public_key and private_key generated by vapid? Here I am always having the error:
[update] 2018-01-16
I tried some tests but I could not get it to work, I'm using vapid and I tried to create a Crypto module itself to use my own Public and Private keys, but I still did not succeed. Would you help me?
[update] 2018-01-17
Trying to come up with a solution, I found this link [https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol] and I noticed that the Authentication part is missing from the header, in order to send a signature JWT when the endpoint is fcm.googleapis.com/fcm.