0

When redirect to chrome, how to make it start a new task under chrome in the Recent:

I'm developing an android app, when press the sign in button on the screen, it will use Microsoft Authentication Library (MSAL) and redirect to the microSoft sign in web to allow users to sign in.

Here's the documentation that I'm following: https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-android , I'm just simply using the single account mode without using the graph api to retrieve any detailed data of the signed in users.

However, when user press the sign in and redirect to chrome(I changed the "authorization_user_agent" in the raw file to be "BROWSER" to use chrome), it's still under the same task. What I want to implement is when users swipe up to view the Recent, the login page should start a new task(might under Chrome task window) rather than still under this app task.

I cannot put flag like Intent.FLAG_ACTIVITY_MULTIPLE_TASK to the intent as the way to start the web activity is just calling mSingleAccountApp.signIn. I don't know how to get this intent and start activity.

Anyone know how to configure this? Thank you so much!

keleDqm
  • 1
  • 2

0 Answers0