mdrajibsk8 / react-native-device-number

MIT License
3 stars 7 forks source link

Android 14 it is not working #19

Open Deepak9811 opened 3 months ago

Deepak9811 commented 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() } }

sanahrGMH commented 1 month ago

Hi @Deepak9811 , Had you found any solution for that.