This is an automated archive made by the Lemmit Bot.

The original was posted on /r/androiddev by /u/Consistent_Hurry on 2025-01-29 21:51:40+00:00.


Fellow Android dev here.

If you work on an Android app that requires entering a 2FA code that’s been emailed to me, for the love of God(s), PLEASE maintain the app’s state. Use Workflow, Circuit, Mavericks, some other library, or maintain it yourself. I don’t care.

If I go to my email inbox on my phone to view the code and then come back to the app, the app shouldn’t reset and begin at the start of the authentication flow again. I have to enter my phone number and so on ♻️ Especially if I don’t have access to view my inbox on a laptop or something, it’s so annoying. It’s not hard, but the only trick I’ve found is to use Android split screen to view Gmail and the other app at the same time.

Or am I not thinking of a security reason to not doing this?