Giter Site home page Giter Site logo

Comments (7)

johnnydvc avatar johnnydvc commented on June 2, 2024 1

Something has happened and I don't know what. I fiddled with the settings somewhat, but I cannot say what changed it in the end. Suddenly I was able to set yubico Authenticator app as default nfc action.
Thanks for all the help

from yubioath-flutter.

AdamVe avatar AdamVe commented on June 2, 2024

Hi @johnnydvc, thank you for taking the time to reach out to us.

The first issue ist that I was prompted to input some unlock pin that I never set before

That should not happen - the application only asks for password if the YubiKey has a password set for the OATH application. The entered password can be "remembered" by the app so that it will not be asked again on the phone you "remember" it (but will be asked on any other device). What is also important: every YubiKey has it's own OATH password.

Now I'm prompted to choose between opening Firefox or the authenticator app.

The NFC tap is controlled by the OS, and unfortunately, different phones and Android versions might implement this in various ways - so if you see a functionality change it could come with a system update.
I reproduced exactly the same issue you have and will investigate if this can be fixed in any way, thanks for reporting - as a workaround, on Android 14, there is a menu Settings -> Apps -> Special app access -> Launch via NFC where app can be enabled disabled for the NFC tap. This is at least on a Pixel phone - other manufacturers might have it called in a different way.

Could you let me know what Android version do you use (eventually which manufacturer) and what versions of the app you used before the last update (was it 6.3.0 or 5.x ?)

from yubioath-flutter.

AdamVe avatar AdamVe commented on June 2, 2024

I found another way how to make Yubico Authenticator default app for NFC Tap in Android 14 without the need to disabling NFC for other apps:
In Settings, choose Apps and then See all apps, in the menu select Reset app preferences and confirm. After tapping YubiKey, choose Yubico Authenticator and Always to make Yubico Authenticator open automatically.
Screenshot_20231220-145639 Screenshot_20231220-145342 Screenshot_20231220-145354
Screenshot_20231220-145406 Screenshot_20231220-145427

from yubioath-flutter.

johnnydvc avatar johnnydvc commented on June 2, 2024

Hi. Thanks for the quick reply.
I'm on Android 13 on a Asus Zenfone 9.
Asus hasn't released Android 14 for that phone yet, but it is available as beta.
As of the yubikey authentication app, I'm usually always updated. Currently it's v 6.3.1. before it was v 6.3.0.
I did no mayor os updates in between that I can remember.
Thanks @AdamVe for the help, unfortunately Android 13 or Asus' modified version of it has no option to reset the app defaults. Maybe it in another menu, I'll check again.

from yubioath-flutter.

AdamVe avatar AdamVe commented on June 2, 2024

Thanks for the clarification, you are correct that the described settings for Launch via NFC are Android 14 only.

On Android 13, one can go to app information and see "Defaults" and clear those - in your case I think you should Clear default preferences for Firefox and see if you can choose Yubico Authenticator for always handling the NFC taps:
image

from yubioath-flutter.

johnnydvc avatar johnnydvc commented on June 2, 2024

Thanks for the clarification, you are correct that the described settings for Launch via NFC are Android 14 only.

On Android 13, one can go to app information and see "Defaults" and clear those - in your case I think you should Clear default preferences for Firefox and see if you can choose Yubico Authenticator for always handling the NFC taps: image

I've tried that, it didn't fix it. Still the same behaviour.

from yubioath-flutter.

AdamVe avatar AdamVe commented on June 2, 2024

I've tried that, it didn't fix it. Still the same behaviour.

I am sorry to hear that. Although I have similar experience, that one app will be stuck with "Just once" and "Always" buttons, and other apps can be run only once, I was able to clear defaults in Android 13 devices of different manufacturers (either by Clear default preferences in the App Info screen or by Reset app preferences in the All apps settings).

What does not work as expected at all is the way how the system behaves after reinstalling an app, for example (versions 6.3.0 and 6.3.1 of Yubico Authenticator and Android 13 device):

  1. Firefox is "Just once"/"Always" app, I uninstall it
  2. After I tap YubiKey, I can choose Yubico Authenticator or Chrome to handle the NFC Tap
  3. I choose Yubico Authenticator and directly select "Always"
  4. Tapping NFC YubiKey opens the Yubico Authenticator
  5. I install Firefox
  6. I tap YubiKey

Expected:
I expect a selection where I can choose which of the three apps to use - Chrome/Firefox/Yubico Authenticator.

What really happens:
A selection opens with Firefox pre selected and having "Just once" "Always" buttons and Yubico Authenticator and Chrome listed as "Use a different app" without the possibility to make Yubico Authenticator the default. (Also important to mention, that after uninstalling Firefox, tapping NFC YubiKey opens Yubico Authenticator directly without questions).

I don't understand such behaviour and I don't recall it happening this way recently. I suspect something has changed in Android (one can get system updates through monthly Android Security updates or through Google Play Services updates).

With that, I think I cannot do too much in the app - I will do some more investigations, maybe I get hands on an Asus Zenfone 9 to do more testing; at the end I will file a bug report at Android. Thanks for reporting this to us, @johnnydvc

from yubioath-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.