Stack notification in parsing
How can I do stack notifications in parsing? I am sending push messages to a device like:
ParsePush androidPush = new ParsePush();
androidPush.setMessage("TEST");
androidPush.sendInBackground();
For example, if I send two notifications, then two icons appear in the phone bar. I only want to have 1 badge.
+3
source to share
1 answer
will you try the following?
JSONObject data = new JSONObject("{\"alert\": \"The Mets scored!\",
\"badge\": \"Increment\",
\"sound\": \"cheering.caf\"}");
ParsePush push = new ParsePush();
push.setChannel("Mets");
push.setData(data);
push.sendPushInBackground();
with the code to be set for the same object for multiple notifications.
0
source to share