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

Stops working on Android and need to restart to make it work again #104

Open
swanswanmta opened this issue Oct 10, 2023 · 8 comments
Open

Comments

@swanswanmta
Copy link

It can no longer retrieve the credentials until the phone is restart again. It only happens on the android phone.

@f1ght4fun
Copy link

Same issue, confirmed on Pixed 6, Android 14 and also same was mentioned by a person after version update on Android 9, please advise!

@AbidR-S2
Copy link

AbidR-S2 commented Feb 2, 2024

I have a similar problem but there is a workaround.

If you unlock the device using face recognition, then try to use the plugin method getCredentials in my app it fails with the following error:

Sending plugin error: {"save":false,"callbackId":"36493558","pluginId":"NativeBiometric","methodName":"getCredentials","success":false,"error":{"message":"Failed to get credentials"}}

If you unlock the device using a pattern or a fingerprint (not tried passcode) then getCredentials works just fine.

This occurred on a Tab Active 3 (Android 13) and a Tab Active 4 Pro (Android 14).
This only happens on Android devices.

@selbuk1960
Copy link

I have a similar problem but there is a workaround.

If you unlock the device using face recognition, then try to use the plugin method getCredentials in my app it fails with the following error:

Sending plugin error: {"save":false,"callbackId":"36493558","pluginId":"NativeBiometric","methodName":"getCredentials","success":false,"error":{"message":"Failed to get credentials"}}

If you unlock the device using a pattern or a fingerprint (not tried passcode) then getCredentials works just fine.

This occurred on a Tab Active 3 (Android 13) and a Tab Active 4 Pro (Android 14). This only happens on Android devices.

Incredible, it took more than 4 hours looking for the error and this solved it. A temporary message can be left for users to let them know what is happening.

@mobilityvalley
Copy link

mobilityvalley commented May 22, 2024

I reproduce this bug many time a day on Android 12, I have only fingerprint available for biometric verification and I don't unlock the phone using the biometry.

For more information I set a first credential it works when I set a second with server value different it does not work

So there is no solution ?

@qliqdev
Copy link

qliqdev commented May 24, 2024

Any solution?

I have the same problem

when i unlock Pixel 7 pro with faceid app throws

Error: Failed to get credentials

BiometryType is 6 means that it is MULTIPLE

@mobilityvalley
Copy link

There is a bug on android, capacitor 5 I changed the plugin for access to secure storage

@qliqdev
Copy link

qliqdev commented May 25, 2024

There is a bug on android, capacitor 5 I changed the plugin for access to secure storage

Would you mind sharing the plugin?

@mobilityvalley
Copy link

I installed https://github.com/aparajita/capacitor-secure-storage

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

No branches or pull requests

6 participants