Recently my GCM push message notification didn't work anymore. I didn't change anything, in my Google API Console, I've registred the IPV6 of my dedicated server if the whitelist IP address.
But when I try to reach GCM service I always get an error :
Unauthorized
Error 401
Also tried with IPV4 without success...
I've tried the same script on my own computer and everything works smooth ...
Any idea would be very appreciate :)
Thanks for your help
You need to put the server IP address in the whitelist ip addresses in google api console for GCM.
Edit: you must use Key for server apps (with IP locking) instead of browser key.
i have had the same issue for 1 whole day ! but silly me... in your Dev console>APIs & auth > make sure your "google cloud messaging for android" is ON ! That was my mistake. And also first test by allowing all IPs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With