Skip to content

Commit

Permalink
MOB-5132 (#613)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
devcsomnicg and Ayyanchira authored Aug 29, 2023
1 parent e8b6532 commit f479175
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f479175

Please sign in to comment.