Skip to content

Commit

Permalink
[MOB-8111] - Pass intent to launching Activity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayyanchira committed Mar 25, 2024
1 parent c8fd88c commit d780e52
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 d780e52

Please sign in to comment.