Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Oct 17, 2023
1 parent d0e6f33 commit 25d5975
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)
// Without these flags, Android OS does not launch activity again in one session if the activity was recently launched
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) {
Expand Down

0 comments on commit 25d5975

Please sign in to comment.