From f479175e702e3d6b7223cb6ed005cbc91fe51071 Mon Sep 17 00:00:00 2001 From: devcsomnicg <129495456+devcsomnicg@users.noreply.github.com> Date: Wed, 30 Aug 2023 01:40:55 +0530 Subject: [PATCH] MOB-5132 (#613) * MOB-5132: Fix deep link issue after app is opened from notification * Fix deep link for buttons It fixes the issue of deep link on buttons --------- Co-authored-by: Akshay Ayyanchira --- .../com/iterable/iterableapi/IterableNotificationBuilder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/iterableapi/src/main/java/com/iterable/iterableapi/IterableNotificationBuilder.java b/iterableapi/src/main/java/com/iterable/iterableapi/IterableNotificationBuilder.java index 429053006..17937725d 100644 --- a/iterableapi/src/main/java/com/iterable/iterableapi/IterableNotificationBuilder.java +++ b/iterableapi/src/main/java/com/iterable/iterableapi/IterableNotificationBuilder.java @@ -132,6 +132,7 @@ private PendingIntent getPendingIntent(Context context, IterableNotificationData if (button.openApp) { IterableLogger.d(TAG, "Go through TrampolineActivity"); buttonIntent.setClass(context, IterableTrampolineActivity.class); + buttonIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); pendingButtonIntent = PendingIntent.getActivity(context, buttonIntent.hashCode(), buttonIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE); } else {