Flutterwave / AndroidSDK

Rave's Android Drop In UI
7 stars 8 forks source link

it runs well on Android 9 below but doesn't work on Android 10 above #287

Open andymaking opened 2 years ago

andymaking commented 2 years ago

I ran the app using kotlin and it works perfectly on Android 10 below but crashes and returns me to my checkout page i created when I submit the card details

It doesn't get to the OTP page it just crashes

The Error Message: E/AndroidRuntime: FATAL EXCEPTION: main Process: io.king.xmlflutter, PID: 23930 java.lang.SecurityException: getDeviceId: The user 10444 does not meet the requirements to access device identifiers. at android.os.Parcel.createException(Parcel.java:2071) at android.os.Parcel.readException(Parcel.java:2039) at android.os.Parcel.readException(Parcel.java:1987) at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:10389) at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:1620) at com.flutterwave.raveandroid.Utils.getDeviceImei(Utils.java:54) at com.flutterwave.raveandroid.card.CardFragment.validateDetails(CardFragment.java:287) at com.flutterwave.raveandroid.card.CardFragment.onClick(CardFragment.java:169) at android.view.View.performClick(View.java:7156) at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1131) at android.view.View.performClickInternal(View.java:7129) at android.view.View.access$3500(View.java:803) at android.view.View$PerformClick.run(View.java:27549) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:264) at android.app.ActivityThread.main(ActivityThread.java:7684) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)