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()))