auth0 / Auth0.Android

Android toolkit for Auth0 API
https://auth0.com
MIT License
208 stars 130 forks source link

In AuthenticationActivity intent flag CLEAR_TOP will close previous Activities with Launcher set to `singleTask` #719

Open cooperkong opened 4 months ago

cooperkong commented 4 months ago

Checklist

Description

This issue can be repdocued by thie repo https://github.com/cooperkong/auth0-issue

Reproduction

  1. launch app
  2. click on button to launch Auth0 login page
  3. click Home button to close app
  4. re-launch again from launcher
  5. click on button to launch Auth0 login page will cause the app to close

Additional context

Hi Auth- team, I understand there might be a need to CLEAR_TOP when launching AuthenticationActivity but in the example provided, it has unpexpected behaviour. My suggestion would be

Auth0.Android version

2.10.2

Android version(s)

12

cooperkong commented 4 months ago

Here is also a video to reproduce this issue. 3.webm