I am attempting to do a POST on "https://gcm-http.googleapis.com/gcm/send".
The connection I receive is as follows:
200
{"multicast_id":6570365141544424316,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1446150341234481%2c7295a7f9fd7ecd"}]}
In other words, it is talking to the GCM and should send a push notification to my phone. However, I have a suspicion that the JSON I am sending is incorrect. Here is the JSON:
String json ="{\"registration_ids\" : [\"APA91bGxHWapgmxgyvPceu85ArDMLaFekbTt5RGzy3gv1xtSO09tJbvnaeVLefBqNl_iBrctoZQ2AltSMfrXykq8-AEQtUUWnCVH566xcwib4HinI16W3_g\"],\"notification\" : {\"sound\" : \"default\",\"badge\" : \"1\",\"title\" : \"default\",\"body\" : \"Test\"},\"data\" : {\"msg\":{\"message\":\"this is it\"}}}";
I wasn't sure how to debug this issue, as I am not receive anything. I would appreciate it if someone could show me the proper syntax for this. Perhaps my syntax is correct and I am just not sending the correct parameters to the GCM?