-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Feature Request: Add Support for createCredential Method in Android Credential Manager
Objective:
Implement the createCredential method to allow users to securely save their credentials (username and password, etc) to the Android Credential Manager through the SmartAuth Flutter package.
Tasks:
-
Research Android Credential Manager API:
- Review the
createCredentialmethod in the Android Credential Manager documentation. - Understand the required permissions and configurations to save credentials.
- Review the
-
Native Android Implementation:
- Implement the
createCredentialfunctionality in Android using the Credential Manager API.
- Implement the
-
Flutter Integration:
- Create a dedicated Dart method to call the native Android implementation via Pigeon generated API.
- Example API:
Future<SmartAuthResult> createCredential(params);
-
Handle Edge Cases:
- Handle scenarios such as:
- Invalid or empty credentials.
- Permissions denied by the user.
- System-level errors or unsupported devices.
- Provide meaningful error messages for these cases.
- Handle scenarios such as:
-
Update Documentation:
- Add a section to the SmartAuth documentation explaining:
- How to use
createCredential. - The purpose and benefits of saving credentials.
- Any Android-specific requirements, such as API level.
- How to use
- Provide code examples for integration.
- Add a section to the SmartAuth documentation explaining:
-
Enhance the Sample App:
- Add functionality to the sample app to demonstrate saving credentials using
createCredential. - Include clear UI prompts and interactions for testing.
- Add functionality to the sample app to demonstrate saving credentials using
Metadata
Metadata
Assignees
Labels
No labels