Skip to content Skip to sidebar Skip to footer

Sending Notifications To Google Cloud Messaging With Php Gives Me Unauthorized Error 401

Searching for some info about how to send notifications using GCM but with PHP instead of servlets, i found this: GCM with PHP (Google Cloud Messaging) I tested the working code of

Solution 1:

Solved!!!

you must use Key for server apps (with IP locking) instead of browser key

:)


Solution 2:

You need to use the key for server apps in the field of API key in your server side coding. While creating the server key don't enter anything inside IP address field.


Post a Comment for "Sending Notifications To Google Cloud Messaging With Php Gives Me Unauthorized Error 401"