0
votes

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 ?

1

1 Answers

0
votes

I believe you can check this out in Parse's admin console. Login and go to Push tab and you can see push notifications sent, how many devices received it and how many times it was opened.