Io Exception While Accessing Google Cloud Message?
I have written the code for GCM both in server and Android. I am getting the Registration ID successfully.But I am not able to register to GCM,while making a post to register it sh
Solution 1:
These are the line of code that creates the exception:
int status = conn.getResponseCode();
if (status != 200) {
thrownewIOException("Post failed with error code " + status);
Basically this methods is responsible for sending a POST request to the server. Have you configured the endpoint URL correctly in the client app?
Edit: The status code 302 is "Found: The requested resource resides temporarily under a different URI." See here for more info: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Post a Comment for "Io Exception While Accessing Google Cloud Message?"