I have implemented push notifications for my android app .I am able to show multiple notification in notification bar but only one notification work at a time.
i think the problem in flags type
Intent.FLAG_ACTIVITY_CLEAR_TOP
Intent.FLAG_ACTIVITY_SINGLE_TOP
and
PendingIntent.FLAG_CANCEL_CURRENT
this is my code , please tell me what type of Flag i will set
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
Intent.FLAG_ACTIVITY_SINGLE_TOP);
final PendingIntent resultPendingIntent =
PendingIntent.getActivity(
mContext,
0,
intent,
PendingIntent.FLAG_CANCEL_CURRENT
);