android / identity-samples

Multiple samples showing the best practices in identity on Android.
Apache License 2.0
366 stars 221 forks source link

Request for sample Application for Native Android on passkey with AutoFill. #71

Closed kondlada closed 5 months ago

kondlada commented 6 months ago

request to show Passkey Auto fill uI flow and required code changes or snippet. Please demonstrate.

Thanks karthik K

kondlada commented 5 months ago

HI Team can anyone please help in resolving my query

ksemenova commented 5 months ago

For Autofill integration please follow: https://developer.android.com/training/sign-in/passkeys#indicate_credential_fields and let us know if you have any questions.

We're also planing to integrate passkeys suggestions in autofill surfaces. Your users will see their saved credentials in keyboard suggestions or when clicking on relevant input fields during sign-in. This feature will be available later this year in Android 15 and we will share code samples once it's available.

kondlada commented 4 months ago

Hi @ksemenova , Can you show us any video or ui how the current autofill behave in android 14 ?

Thanks Karthik K

kondlada commented 4 months ago

Hi @ksemenova can you please share some demo video for autofill.

I have added additianl textView like below : android:autofillHints="username" android:isCredential="true" android:importantForAutofill="yes"

also by using just android:isCredential attribute to textView but nothing happening in my application. with atleast androidhint username from password manager it is able to replace username in the edit text. but they are replaced with saved username and password but not passkey UserId's.

I am unsure about the behaviour and code changes required for autofill with Passkey.

Please help me understanding the changes required and behaviour for autofill.

Thanks karthik K

kondlada commented 4 months ago

HI @ksemenova
We are getting just userName from the saved userName and Passwords but not Passkey. If this requires any additional code changes please let us know .

Thanks Karthik K