Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Intent to EnterKeyActivity passing Key, Account Name and Time Based #54

Open
renannery opened this issue Oct 26, 2016 · 2 comments
Open

Comments

@renannery
Copy link

Hi guys!

How do you guys feel about add those 3 values (account name, key and time based) through the intent from another app in EnterKeyActivity?

The thing is, I have all this values and I'd like to make the process to enable it easier. In this way the user will only need to tap ADD button.

@ThomasHabets
Copy link
Contributor

First the disclaimer:

--
FYI: The version in Google Play Store / Apple App store is not the same as this opensource version. They've diverged. This opensource version is also unlikely to end up in the app stores. This open source version doesn't get much love, but I'll accept well-written pull requests. But don't expect this feature to be implemented by Google.

Now an answer:
Yeah, that sounds good. I could forward patches too, and they may or may not apply to the app store version.

@renannery
Copy link
Author

renannery commented Nov 1, 2016

Just for the record, I figure out a way to open Google Authenticator with all the values that I mentioned

String uri = "otpauth://totp/whatever:" + email + "?secret=" + yourKey + "&issuer=whatever"
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(intent);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants