Azure-Samples / ms-identity-android-kotlin

Microsoft Authentication Library sample for Kotlin
MIT License
38 stars 38 forks source link

Clicking home button in middle of a sign in process, and try to sign in again. No sign in screen is opening #24

Open ankita-gvaxp6 opened 2 months ago

ankita-gvaxp6 commented 2 months ago

We made this app a default launcher by changing the manifest file where we added for MainActivity. Now in the app we hit the sign in button. When it opens the MS sign in screen, I hit the home button which navigates back to the home screen of the launcher. When the sign in button is clicked again, nothing is happening.

In our app(which happens to be a launcher too): We have a launcher developed in Kotlin where we have integrated Microsoft Sign in. When we click on the sign in button and it goes to Microsoft Sign-in page, we click on the android home button. Again, from Home Screen if we try to sign in, it does nothing (shows a loader as per the code while trying to open Microsoft sign-in page). It seems that upon clicking on home button, the Microsoft sign-in page instance is not getting closed/deleted, which results in no error and the screen keeps loading

negoe commented 1 month ago

@ankita-gvaxp6

ankita-gvaxp6 commented 1 month ago

log_text.txt Added log and below are the screens Screenshot_20240524-130702 Screenshot_20240524-130803 Here when I click on the home button in MS login screen it comes back to the launcher (I converted this app to launcher) and then nothing happens. When I try to see the recent apps, I see the login screen is still there and it is not killed when user clicks on home button

ankita-gvaxp6 commented 1 month ago

Hi team, is there any update on this? If there is a way we can have a teams call, it will be very helpful

negoe commented 1 month ago

@ankita-gvaxp6 Thanks for the details. Will review and get back to you.

negoe commented 4 weeks ago

Hey @ankita-gvaxp6, Per my understanding your expectation is that once you hit the home button you should not be seeing the MS log-in screen. The flow is working as expected. We frequently see users to switch between activity to Password managers and Texting app to get their passwords or MFA codes/OTP codes. We keep the sign-in page so that users can successfully copy paste their passwords or MFA codes without losing the sign in page while switching between the apps.