Android - minimizing the auth0 custom tab closes the application

I am using Auth0 with a native android app.

When I minimize the auth0 browser (custom tab) with the home button, I see that onDestroy of my MainActivity is called, I do not see any obvious error in the logs.
So the application is now closed, but the auth0 browser remains in the phone application list. If I give it the focus, it reapears but now, the top left X button will not close the browser it will simply minimize it again, it is no more linked to my application (which have stopped).

I am not sure what is happening. Any help will be appreciated.

1 Like

Additional information:
It seems to be related to the launchMode of the Authentification Activity.
It seems to be set to singleTask while my main activity is set to singleInstance.