Skip to content

Commit 275c4f1

Browse files
devcsomnicgAyyanchira
authored andcommitted
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 <[email protected]>
1 parent 355db54 commit 275c4f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableNotificationBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ private PendingIntent getPendingIntent(Context context, IterableNotificationData
132132
if (button.openApp) {
133133
IterableLogger.d(TAG, "Go through TrampolineActivity");
134134
buttonIntent.setClass(context, IterableTrampolineActivity.class);
135+
buttonIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
135136
pendingButtonIntent = PendingIntent.getActivity(context, buttonIntent.hashCode(),
136137
buttonIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
137138
} else {

0 commit comments

Comments
 (0)