faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
239 stars 92 forks source link

requestHint gives error ApiException: 16: No phone number is found on this device. #77

Open emmanuelfrancis opened 1 year ago

emmanuelfrancis commented 1 year ago

I am getting below error on Android 12:

E/OtpVerifyModule: Phone Number Hint failed com.google.android.gms.common.api.ApiException: 16: No phone number is found on this device. at com.google.android.gms.common.api.internal.TaskUtil.setResultOrApiException(com.google.android.gms:play-services-base@@18.0.1:4) at com.google.android.gms.internal.auth-api.zbax.zbb(com.google.android.gms:play-services-auth@@20.4.0:1) at com.google.android.gms.internal.auth-api.zbaa.zba(com.google.android.gms:play-services-auth@@20.4.0:4) at com.google.android.gms.internal.auth-api.zbb.onTransact(com.google.android.gms:play-services-auth@@20.4.0:3) at android.os.Binder.execTransactInternal(Binder.java:1220) at android.os.Binder.execTransact(Binder.java:1179) 2023

ipekmuhammet commented 4 months ago

Same. It works on the emulator, but it does not work on Xiaomi Redmi Note 11 Pro.

ipekmuhammet commented 4 months ago

I manually set the number to my sim and now it works. Can someone enlighten me why this happened?