I am justing trying to get phone number using GetPhoneNumberHintIntentRequest
to replace HintRequest
.
So just trying to follow google developer doc https://developers.google.com/identity/phone-number-hint/android#kotlin_2. But after following doc I feel this doc is incomplete.
val phoneNumberHintIntentResultLauncher: ActivityResultLauncher<Intent> =
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
try {
val phoneNumber = Identity.getSignInClient(requireActivity()).getPhoneNumberFromIntent(result.data)
} catch(e: Exception) {
}
}
So as per doc you need to pass intent to phoneNumberHintIntentResultLauncher
but there is no method inside GetPhoneNumberHintIntentRequest
.
Even if you see doc then you realise that you need to replace signInClient
to getSignInClient
.
If any one know about above issue then let me know or any doc where I can achieve my goal.