I am current sending push notification from the client device using Parse. I am using the following code to achieve it.
ParseQuery pushQuery = ParseInstallation.getQuery();//mobile2
pushQuery.whereEqualTo("userName", message.getText().toString());
ParsePush push = new ParsePush();
Log.e("", "" + pushQuery.toString());
push.setQuery(pushQuery);
try {
JSONObject data = new JSONObject("{\"message\": \"The Mets scored!\",\"sound\": \"cheering.caf\"}");
push.setData(data);
} catch (JSONException e) {
e.printStackTrace();
}
push.sendInBackground();
Is there a way to check if the push notification was sent successfully or not ? Thanks in advance.
Note: I am asking in the device, how do I know whether the request to send Push notification was made successfully or not ?