Mobile 移动第一服务器-当发送多个推送通知时,Android设备中只显示最后一个通知

Mobile 移动第一服务器-当发送多个推送通知时,Android设备中只显示最后一个通知,mobile,ibm-mobilefirst,Mobile,Ibm Mobilefirst,我们已经使用mobile first服务器推送API为Apple和Android实现了推送通知。当我们向单用户发送多个推送通知时,苹果设备将收到所有通知,但在安卓系统中,只显示最后一条消息。有人知道如何解决这个问题吗。它是否与Mobile first platform配置相关?或者是设备问题?只需使用不同的通知id或自动生成的id即可。因此,您如何确认仅收到最后一次通知?此混合应用解决方案。我猜这是Android专用的?这两个版本都适用,你每次都需要传递uique id,直到所有通知都无法从通知

我们已经使用mobile first服务器推送API为Apple和Android实现了推送通知。当我们向单用户发送多个推送通知时,苹果设备将收到所有通知,但在安卓系统中,只显示最后一条消息。有人知道如何解决这个问题吗。它是否与Mobile first platform配置相关?或者是设备问题?

只需使用不同的通知id或自动生成的id即可。因此,您如何确认仅收到最后一次通知?此混合应用解决方案。我猜这是Android专用的?这两个版本都适用,你每次都需要传递uique id,直到所有通知都无法从通知区清除为止
NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

        Notification notification = new NotificationCompat.Builder(ChimmerIntentService.this).setContentTitle(app_name).setSmallIcon(icon_ID).setContentText(message)
                .setDefaults(Notification.DEFAULT_SOUND).setAutoCancel(true).setContentIntent(pendingIntent).build();

        notification.flags |= Notification.FLAG_AUTO_CANCEL;

        notificationManager.notify(notificationTag, notificationID, notification);


In this method we pass notification id every time you need to pass unique id for each notification.

notificationManager.notify(notificationTag, notificationID, notification);

May be you pass the same notification id  every time when a new notification is comming because of same id it replace the privious one.