Skip to content

Commit 9ad4f25

Browse files
authored
latest notification data in getInitialNotification (#830)
as said here: #828 (comment)
1 parent 4d1e3a1 commit 9ad4f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/android/app/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static PendingIntent createPendingNotificationIntent(Context appContext,
1919
mainActivityIntent.putExtra(PUSH_NOTIFICATION_EXTRA_NAME, notification.asBundle());
2020
TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(appContext);
2121
taskStackBuilder.addNextIntentWithParentStack(mainActivityIntent);
22-
return taskStackBuilder.getPendingIntent(0, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
22+
return taskStackBuilder.getPendingIntent((int) System.currentTimeMillis(), PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
2323
} else {
2424
Intent intent = new Intent(appContext, ProxyService.class);
2525
intent.putExtra(PUSH_NOTIFICATION_EXTRA_NAME, notification.asBundle());

0 commit comments

Comments
 (0)