Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add widget or free form floating activity #1242

Open
xyzianz opened this issue Jan 24, 2025 · 0 comments
Open

Add widget or free form floating activity #1242

xyzianz opened this issue Jan 24, 2025 · 0 comments
Labels
feature New feature

Comments

@xyzianz
Copy link

xyzianz commented Jan 24, 2025

Certain apps and services using TOTP codes in WebViews have a recurring issue (though it used to be worse): leaving the app to access an authenticator and then returning causes the WebView to close. This can sometimes abort the login process or even the app entirely, forcing a restart. Additionally, the previously copied TOTP code frequently expires by the time the OTP input form reappears, necessitating yet another trip to the authenticator. This process can be extremely frustrating and inefficient.

To work around this, I use Authy with its homescreen widget and leverage automation tools (Touch The Notch -> Tasker -> Popup Widget) to launch the widget in a freeform floating container, such as Popup Widget or Panels. This approach prevents the faulty app or WebView from closing, enabling a seamless and rapid 2FA process. In fact, this workflow has become indispensable for me due to its speed and fluidity.

As far as I know, there are two ways to replicate this workflow:

  1. Widget-Based Approach: Use a homescreen widget to display the authenticator view’s contents. This may require addressing biometric/password locks or even disabling them for the widget to function properly.

  2. Deep Link Intent Approach: Register a deep link intent to launch the authenticator’s base or main activity in a freeform floating window. This requires the ACTION_MANAGE_OVERLAY_PERMISSION permission. It would allow other apps to call the floating version of the app via the Intent system. (Or perhaps even better: just the authenticator view in a floating window that copies the selected code upon click and closes itself immediately.)

@xyzianz xyzianz added the feature New feature label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Development

No branches or pull requests

1 participant