pharshdev / sms_user_consent Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin that implements Android's SMS User Consent API
License: MIT License
Flutter plugin that implements Android's SMS User Consent API
License: MIT License
Tried the plugin with targetSdk set to 31.
Upon smsUserConsent.requestPhoneNumber(), above exception is thrown.
Please let know any workaround or update plugin with the fix.
Thanks
I have 1 popup to show OTP input but if I close that popup suddenly and I called dispose but then still show permission screen: SMS_CONSENT_REQUEST, is it possible to add a function to actively stop sms retrieved?
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)
I was trying to upload a version of my application to google play and faced this:
Your app(s) are vulnerable to Intent Redirection.
To address this issue, follow the steps in this Google Help Center article.
q3.b$b.onReceive
androidx.activity.ComponentActivity.startActivityForResult
While these vulnerabilities may not affect every app, itβs best to stay up to date on all security patches.
I think it is referring to this part of code:
mActivity.startActivityForResult(extras.getParcelable(SmsRetriever.EXTRA_CONSENT_INTENT), SMS_CONSENT_REQUEST)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.