is there a way to get data from “gcm notification”. Here is a part of my json string which I send with gcm: “data”:{“state”:”deliver”}}. Here i am sending data using php curl request. Thanks in advance.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GCM Send the data in JSON format. You need to parse the JSON object to get the data which you are sending. The following code works for me :
Then to parse the JSON :