pharshdev / sms_user_consent

Flutter plugin that implements Android's SMS User Consent API
MIT License
9 stars 26 forks source link

Crash brightness_1 Huawei Y9 Prime 2019 brightness_1 Android 10 (SDK 29) brightness_1 #3

Open david-macharia opened 3 years ago

david-macharia commented 3 years ago

The plugin crashes on android 10. java.lang.RuntimeException: at android.app.ActivityThread.deliverResults (ActivityThread.java:5471) at android.app.ActivityThread.handleSendResult (ActivityThread.java:5512) at android.app.servertransaction.ActivityResultItem.execute (ActivityResultItem.java:51) at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:149) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:103) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2386) at android.os.Handler.dispatchMessage (Handler.java:107) at android.os.Looper.loop (Looper.java:213) at android.app.ActivityThread.main (ActivityThread.java:8178) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1101) Caused by: java.lang.IllegalArgumentException: at android.app.LoadedApk.forgetReceiverDispatcher (LoadedApk.java:1507) at android.app.ContextImpl.unregisterReceiver (ContextImpl.java:1647) at android.content.ContextWrapper.unregisterReceiver (ContextWrapper.java:664) at dev.pharsh.sms_user_consent.SmsUserConsentPlugin$onAttachedToActivity$1.onActivityResult (SmsUserConsentPlugin.kt:76) at io.flutter.embedding.engine.FlutterEnginePluginRegistry$FlutterEngineActivityPluginBinding.onActivityResult (FlutterEnginePluginRegistry.java:691) at io.flutter.embedding.engine.FlutterEnginePluginRegistry.onActivityResult (FlutterEnginePluginRegistry.java:378) at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult (FlutterActivityAndFragmentDelegate.java:625) at io.flutter.embedding.android.FlutterActivity.onActivityResult (FlutterActivity.java:583) at android.app.Activity.dispatchActivityResult (Activity.java:8413) at android.app.ActivityThread.deliverResults (ActivityThread.java:5464)

Vinayak-Bhardwaj commented 3 years ago

@david-macharia did you find any solution to this problem? because I am getting the same issue. @pharshdev can you please look into this issue.

aragonet commented 2 years ago

I'm having the same issue too, any news on this?

Vinayak-Bhardwaj commented 2 years ago

I used sms auto fill package it works fine

On Fri, 29 Oct, 2021, 12:39 aragonet, @.***> wrote:

I'm having the same issue too, any news on this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pharshdev/sms_user_consent/issues/3#issuecomment-954485515, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMZJPWMTW66NTAVQ3JILFLUJJJEJANCNFSM45KL4K7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SachinCodeMatrix commented 2 years ago

Upgrade your compile SDK API level to 30. It will work