0

I have tried multiple solutions given by some sources, but that didn't work for me, below I given a dummy example,

enter image description here

I have same implementation like this, when multiple notification come that only increase count. I want separate notification for each task like this

enter image description here

this is my code for differentiate notification but that increasing count here is some code

var pendingIntent = PendingIntent.GetActivity(this, 0, uiIntent, PendingIntentFlags.OneShot);



Notification notification = builder.SetContentIntent(pendingIntent)    
                                  .SetSmallIcon(Resource.Drawable.notificationIcon).SetTicker(message)
                                  .AddAction(Resource.Drawable.ic_action_accept, "Accept", null)
                                  .AddAction(Resource.Drawable.ic_action_remove, "Reject", null)
                                  .SetAutoCancel(true).SetContentTitle(title).SetNumber(DroidConstants.NotifyCounter)
                                  .SetDefaults((int)NotificationDefaults.All)
                                  .SetContentText(message).Build();
            notificationManager.Notify(unique++, notification);

please help me out on this...

  • Possible duplicate of [Multiple notifications to the same activity](http://stackoverflow.com/questions/6066363/multiple-notifications-to-the-same-activity) – SushiHangover Oct 17 '16 at 11:52
  • That solution is not worked for me, I already mention in one line code – Sumit Pathak Oct 17 '16 at 12:39
  • Please show the code where you create your `notification` object and the pending `Intent`. I assume the issue is in the flags you are setting. – hvaughan3 Oct 17 '16 at 12:43
  • If your `PendingIntent` matches your unique value it should, you only setting the `Notify` using a unique id via `unique++`, thus the notifications will group. – SushiHangover Oct 17 '16 at 12:44
  • hi @hvaughan3 I have updated some code, please check it. – Sumit Pathak Oct 18 '16 at 10:32

0 Answers0