Open Deepak9811 opened 3 months ago
Not working below code on Android 14
private fun getPhone() { val googleApiClient = GoogleApiClient.Builder(this) .addApi(Auth.CREDENTIALS_API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build() googleApiClient.connect() val hintRequest = HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .build() val intent = Auth.CredentialsApi.getHintPickerIntent(googleApiClient, hintRequest) try { startIntentSenderForResult(intent.intentSender, PERMISSION_REQUEST_CODE, null, 0, 0, 0) } catch (e: IntentSender.SendIntentException) { e.printStackTrace() } }
Hi @Deepak9811 , Had you found any solution for that.
Not working below code on Android 14
private fun getPhone() { val googleApiClient = GoogleApiClient.Builder(this) .addApi(Auth.CREDENTIALS_API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build() googleApiClient.connect() val hintRequest = HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .build() val intent = Auth.CredentialsApi.getHintPickerIntent(googleApiClient, hintRequest) try { startIntentSenderForResult(intent.intentSender, PERMISSION_REQUEST_CODE, null, 0, 0, 0) } catch (e: IntentSender.SendIntentException) { e.printStackTrace() } }