truecaller / flutter-sdk

Flutter plugin that uses Truecaller's Android SDK to provide mobile number verification service to verify users.
https://pub.dev/packages/truecaller_sdk
MIT License
24 stars 40 forks source link

TruecallerSdk.requestVerification not working for the flutter app #18

Open achyuthreddyi opened 3 years ago

achyuthreddyi commented 3 years ago

I have used the flutter official package for developing the mobile app. I was able to work on the app when truecaller is already installed in the client app. but when I was implementing SDK_OPTION_WITH_OTP. I was getting the Accessing hidden method Landroid/telephony/TelephonyManager;->getSubscriberId(I)Ljava/lang/String; (greylist-max-p, reflection, denied).whenever I am using TruecallerSdk.requestVerification(phoneNumber: _mobile.text);

parth0907 commented 3 years ago

Hi @achyuthreddyi

Thanks for writing in!

For the issue you are facing if you could once check if all the required permissions mentioned in our documentation are present in your AndroidManifest.xml or not? Please refer to our documentation here to understand more regarding the permissions required for non-truecaller user verification via dropcall/otp to work.

In case of any further questions, please feel free to reach us via our support channel https://developer.truecaller.com/support for a faster and dedicated response.

Regards, Parth