Search code examples
phpandroidpushandroid-c2dm

Android C2DM servers send error


I used PHP code to write the 3rd servers ,I can get the deviceRegistrationId and authToken, but now I receive "Unauthorized Error 401",here is the PHP code which I used. C2DM implementation PHP code


Solution

  • Unauthorized Error 401 indicates that the ClientLogin AUTH_TOKEN used to validate the sender is invalid. Please make sure you are sending the correct ClientLogin to the google server.