Skip to content

Commit

Permalink
latest notification data in getInitialNotification (#830)
Browse files Browse the repository at this point in the history
as said here: #828 (comment)
  • Loading branch information
DanielEliraz authored Feb 26, 2022
1 parent 4d1e3a1 commit 9ad4f25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static PendingIntent createPendingNotificationIntent(Context appContext,
mainActivityIntent.putExtra(PUSH_NOTIFICATION_EXTRA_NAME, notification.asBundle());
TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(appContext);
taskStackBuilder.addNextIntentWithParentStack(mainActivityIntent);
return taskStackBuilder.getPendingIntent(0, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
return taskStackBuilder.getPendingIntent((int) System.currentTimeMillis(), PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
} else {
Intent intent = new Intent(appContext, ProxyService.class);
intent.putExtra(PUSH_NOTIFICATION_EXTRA_NAME, notification.asBundle());
Expand Down

0 comments on commit 9ad4f25

Please sign in to comment.