Closed joaocosta9 closed 2 years ago
HI, i also discover this issue. i always get "cancelled" on android 10 run in emulator, but when i run on device with android 10 everything work fine.
From documentation "cancelled" mean
If the user chooses not to save credentials, the user won't be prompted again to save any account's credentials for the app. If you call CredentialsClient.save() after a user has opted out, its result will have a status code of CANCELED. The user can opt in later from the Google Settings app, in the Smart Lock for Passwords section. The user must enable credential saving for all accounts to be prompted to save credentials next time.
Hi @fonov . Yes smart lock does not work for emulator (I believe its the normal behaviour). I later discovered from multiple sources that smart lock can have problems in some Android 10 devices, I tried in different android 10 smarthphones and it worked in some of them, and on others not. I also tried the package in other android versions and everything was working fine. I think the smartlock malfunction in android 10 has nothing to do with this package, since I also checked the native code, and evreything was according with the documentation.
I was facing the same issue of getting Cancelled
. I realized that I have multiple Google account signed in on the device. One of the account had "Never" save password for the app. I removed the never save password for the Google account and it works flawlessly.
Hello! Does this package works with android 10? I'm getting "cancelled" when I try to save my credentials. It says in the documentation "The save method might be canceled if the system wants to give priority to the password manager UI instead". What is this password managet UI? Is there anyway I can turn this around?
Thank you