Feature Request: Add prepareGetCredential Method Support for Android Credential Manager
Objective:
Implement the prepareGetCredential method to reduce latency when showing the account selector in the getCredential process on Android 14 or higher.
Tasks:
-
Review API Documentation:
- Study the
prepareGetCredential method in the Android Credential Manager API.
- Understand how to create
GetCredentialRequest with options like getPublicKeyCredentialOption and getPasswordOption.
-
Native Android Implementation:
- Implement the
prepareGetCredential method to:
- Accept
GetCredentialRequest with relevant options.
- Return a
PrepareGetCredentialResponse object with cached data.
-
Flutter Integration:
- Add a Dart API for this method:
Future<SmartAuthResult> prepareGetCredential(params);
- Define a model for
PrepareGetCredentialResponse to encapsulate cached data results.
-
Combine with getCredential:
- Ensure
prepareGetCredential works seamlessly with the existing getCredential API.
- Use cached data from the
PrepareGetCredentialResponse to reduce latency in UI rendering.
-
Error Handling:
- Handle cases where:
prepareGetCredential is called on unsupported Android versions.
- Invalid or unsupported options are passed.
-
Documentation:
- Update the documentation to explain:
- The purpose of
prepareGetCredential.
- Usage examples and supported Android versions.
- Highlight its benefits for reducing latency in credential selection.
-
Sample App:
- Add a demonstration in the sample app showing how
prepareGetCredential enhances the getCredential flow.
Let me know if this works or needs further refinement!
Feature Request: Add
prepareGetCredentialMethod Support for Android Credential ManagerObjective:
Implement the
prepareGetCredentialmethod to reduce latency when showing the account selector in thegetCredentialprocess on Android 14 or higher.Tasks:
Review API Documentation:
prepareGetCredentialmethod in the Android Credential Manager API.GetCredentialRequestwith options likegetPublicKeyCredentialOptionandgetPasswordOption.Native Android Implementation:
prepareGetCredentialmethod to:GetCredentialRequestwith relevant options.PrepareGetCredentialResponseobject with cached data.Flutter Integration:
PrepareGetCredentialResponseto encapsulate cached data results.Combine with
getCredential:prepareGetCredentialworks seamlessly with the existinggetCredentialAPI.PrepareGetCredentialResponseto reduce latency in UI rendering.Error Handling:
prepareGetCredentialis called on unsupported Android versions.Documentation:
prepareGetCredential.Sample App:
prepareGetCredentialenhances thegetCredentialflow.Let me know if this works or needs further refinement!