android / android/identity-samples
No response from CredentialManager.getCredential(..)
- Dominant language
- Kotlin
- Stars
- 515
- Forks
- 283
- Avg merge
- 9h 37m
- Merged PRs (30d)
- 2
Description
Execution Environment:
OS: Android 14
Device: Samsung Galaxy S24
Issue:
After calling CredentialManager.getCredential(..), the BottomSheetDialog does not appear, and there is no response.
I encountered this issue.
When I tried to reproduce it, I observed the following behavior:
If the dialog fails to open properly for some reason, the suspend function locked and does not proceed. but not crash and not throw exception.
Test Environment:
Virtual Device: Pixel 8 Pro (API 34)
Reproduction Steps:
Touch the screen to close the BottomSheetDialog before it fully appears.
Observed Behavior:
After calling CredentialManager.getCredential(..), there is no response.
----------
It occurs in the following API.
@RequiresApi(34)
suspend fun getCredential(
context: Context,
pendingGetCredentialHandle: PrepareGetCredentialResponse.PendingGetCredentialHandle,
) : GetCredentialResponse
suspend fun getCredential(
context: Context,
request: GetCredentialRequest,
): GetCredentialResponse
Contributor guide
Research direction
Start by reproducing the issue through CredentialManager.getCredential(context, request) and the PendingGetCredentialHandle overload on Android 14. Close the BottomSheetDialog before it appears, then observe whether the suspend call returns or throws; done means it no longer remains unresponsive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100