Skip to content

Commit

Permalink
added flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Oct 17, 2023
1 parent e2acf5b commit d0e6f33
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ internal class CustomerIOPushNotificationHandler(
): PendingIntent {
val notifyIntent = Intent(context, NotificationClickReceiverActivity::class.java)
notifyIntent.putExtra(NotificationClickReceiverActivity.NOTIFICATION_PAYLOAD_EXTRA, payload)
notifyIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
// In Android M, you must specify the mutability of each PendingIntent
val flags = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
Expand Down

0 comments on commit d0e6f33

Please sign in to comment.