Parse platform 解析中的堆栈通知

Parse platform 解析中的堆栈通知,parse-platform,notifications,push-notification,parse-android-sdk,Parse Platform,Notifications,Push Notification,Parse Android Sdk,如何在解析android中执行堆栈通知? 我发送设备的推送消息,例如: ParsePush androidPush = new ParsePush(); androidPush.setMessage("TEST"); androidPush.sendInBackground(); 例如,如果我发送了两个通知,则在电话栏中会出现两个图标。我只想要一个图标。您尝试过以下方法吗 JSONObject data = new JSONObject("{\"alert\": \"The Mets sc

如何在解析android中执行堆栈通知? 我发送设备的推送消息,例如:

ParsePush androidPush = new ParsePush();
 androidPush.setMessage("TEST");
 androidPush.sendInBackground();

例如,如果我发送了两个通知,则在电话栏中会出现两个图标。我只想要一个图标。

您尝试过以下方法吗

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();

使用about代码,您需要为多个通知设置相同的对象。

您的意思是什么?增量?我的意思是当我发送2次推送时,例如,在电话栏中出现2次图标通知,对吗?我只想要发送的所有消息中的一个图标。增量在Android中不起作用。您需要在客户端使用自定义接收器类来处理它。不幸的是,我自己还没有弄明白这一点:(