Don’t use Intent.FLAG_ACTIVITY_NEW_TASK
for PendingIntent.getActivity, use FLAG_ONE_SHOT instead
Copied from comments:
Then set some dummy action on the Intent, otherwise extras are dropped. For example
intent.setAction(Long.toString(System.currentTimeMillis()))
More Related Contents:
- Starting app only if its not currently running
- android How to open last activity when tapping notification
- Extract notification text from parcelable, contentView or contentIntent
- show remaining minutes instead of hours
- Which solution i can use for guaranteed notifications (it is not about push notification)? [closed]
- How to display count of notifications in app launcher icon [duplicate]
- Custom notification layouts and text colors
- Remove data from notification intent
- Actionbar notification count icon (badge) like Google has
- Calling startActivity() from outside of an Activity?
- How to create a notification with NotificationCompat.Builder?
- Determine addAction click for Android notifications
- Sending a notification from a service in Android
- Delete alarm from AlarmManager using cancel() – Android
- getIntent() Extras always NULL
- Android cannot pass intent extras though AlarmManager
- Android – Build a notification, TaskStackBuilder.addParentStack not working
- How to send notification to specific users with FCM?
- How can I correctly pass unique extras to a pending intent?
- How to show daily offline notifications in Android 10?
- No notification sound when sending notification from firebase in android
- Is it possible to create multiple PendingIntents with the same requestCode and different extras?
- How to close the status bar/notification panel after notification button click
- How to use “goAsync” for broadcastReceiver?
- Disable sound from NotificationChannel
- On Android 8.1 API 27 notification does not display
- Dismiss Ongoing Android Notification Via Action Button Without Opening App
- How to add button to notifications in android?
- How to open fragment page, when pressed a notification in android
- Pending intent in notification not working