question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: Switching apps to get the SMS code dismisses the Auth0 modal

See original GitHub issue

Describe the problem

On our Android devices, when you app-switch to get the Auth-code from your Messaging application, when you return to our App, the Auth0 modal dismisses, so you’re forced to restart the process, and hopefully see the Auth-code from the notification-overlay.

This is a duplicate of #438, but I can’t reopen that ticket.

I’ve verified that the Auth0 tenant is marked as Production, and this was initially discovered via customer service complaints.

What was the expected behavior?

App-switching should leave the Auth0 login modal webview visible. On iOS this does not occur.

Reproduction

I don’t have a small reproduction sample, but #438 does. I have a video recording, but it includes a private phone number, and I don’t yet know how to mask that out. Please advise if you’d like me to research that.

  1. Launch the app (on Android)
  2. Click the Login button
  3. Fill in your phone number for SMS passwordless auth
  4. Switch to your Messaging app to read the code
  5. Switch back to the app, and find that the web view has dismissed itself, and you have to start over

Environment

  • Version of this library used: 2.3.8
  • Which framework are you using, if applicable: N/A
  • Other modules/plugins/libraries that might be involved: N/A
  • Any other relevant information you think would be useful: N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
poovamrajcommented, Feb 18, 2022

If you use the Task Manager instead of clicking the App Icon, then the problem does not occur. – What does this imply?

This means intent is sent invoking a new activity instance instead of just reusing the already running activity. We noticed this behaviour when connected to debugging server but not while running the application without it.

Thanks for reporting this issue. We will look into this.

0reactions
poovamrajcommented, Aug 20, 2022

@fbartho @mostafa-abardeh, we are closing this issue for now since we are not able to reproduce this in a production version. Please feel free to reopen this with a sample application & repo. It will be of great help. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Started with Android Authentication Using Kotlin - Auth0
A step-by-step tutorial on using Auth0 and Kotlin to implement basic login/logout in Android apps.
Read more >
Switching between MFA's - Auth0 Community
Hi Team, Is there any way to allow the user to switch between MFA's after completing signup with one of the MFA's. For...
Read more >
Get Started with Jetpack Compose Authentication, Part 1 - Auth0
Learn how to build a basic app using Android's Jetpack Compose UI toolkit.
Read more >
Get Started with Auth0 Authentication in React Native Android ...
If you build Android apps with React Native, this tutorial will show you how quickly you can use Auth0 to add authentication to...
Read more >
Working with Auth0 User and App Metadata in Android Apps
If you're not familiar with integrating Auth0 authentication with Android apps, we strongly recommend that you first go through the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found