Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android Biometrics - Receive result while app is suspended (during credential input)
Qt 6.11 is out! See what's new in the release blog

Android Biometrics - Receive result while app is suspended (during credential input)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 291 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NaLogoN Offline
    NaLogoN Offline
    NaLogo
    wrote on last edited by
    #1

    Hello everyone,

    I am currently implementing biometric authentication in an Android app. The method checking current Biometric status on the device and creating a prompt is a static method in the main app activity.

    The process is as follows:

    • App calls static method which creates and displays the Android Biometric prompt
    • User uses fingerprint/face/iris detection
    • App receives a result

    This part works... but:
    If the user decides to use their credentials (PIN/pattern) to authenticate, it suspends the app to display the PIN entry view from Android. This causes the app to not receive the result of the authentication, probably because the native call I'm using cannot be performed due to the app being suspended until after authentication finishes in this case.

    So I am wondering:

    • Is there a reliable way to store the result of the authentication temporarily so it can be fetched from within the app when it resumes?
    • Or do I need to set up additional callbacks for credential authentication? Right now, I am overriding onAuthenticationError(), onAuthenticationSucceeded() and onAuthenticationFailed() of the Biometric prompt.

    I would greatly appreciate some help. Thank you.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved