Skip to content

Commit

Permalink
Merge pull request #716 from Iterable/MOB-8111-Pass-Intent-data-to-la…
Browse files Browse the repository at this point in the history
…unching-activity

[MOB-8111] - Pass intent to launching Activity
  • Loading branch information
Ayyanchira authored Mar 27, 2024
2 parents c8fd88c + d780e52 commit b921d8f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static void handlePushAction(Context context, Intent intent) {
// Open the launcher activity if the action was not handled by anything, and openApp is true
if (openApp && !handled) {
Intent launcherIntent = IterableNotificationHelper.getMainActivityIntent(context);
launcherIntent.putExtras(intent.getExtras());
launcherIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
if (launcherIntent.resolveActivity(context.getPackageManager()) != null) {
context.startActivity(launcherIntent);
Expand Down

0 comments on commit b921d8f

Please sign in to comment.