GCM message is getting overridden

后端 未结 4 1674
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-14 11:43

I am using GCM push notification to pass some notification to the user. My problem is when am sending single message then this works fine if send more than one then the last

4条回答
  •  甜味超标
    2021-01-14 12:15

    used this coding in your notification

      int requestID = (int) System.currentTimeMillis();
      PendingIntent intent = PendingIntent.getActivity(context, requestID,
      notificationIntent,0 );
    

    then your notification will not override i hope this will help u

提交回复
热议问题