jaumard / sms_autofill

Flutter plugin to provide SMS code autofill support
MIT License
281 stars 173 forks source link

Android 14 sdk not supported crashed on otp received #215

Closed Toufiqulhaquemamun closed 3 weeks ago

Toufiqulhaquemamun commented 7 months ago

Getting this error when chashed Exception java.lang.SecurityException: at android.os.Parcel.createExceptionOrNull (Parcel.java:3057) at android.os.Parcel.createException (Parcel.java:3041) at android.os.Parcel.readException (Parcel.java:3024) at android.os.Parcel.readException (Parcel.java:2966) at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature (IActivityManager.java:5684) at android.app.ContextImpl.registerReceiverInternal (ContextImpl.java:1852) at android.app.ContextImpl.registerReceiver (ContextImpl.java:1792) at android.app.ContextImpl.registerReceiver (ContextImpl.java:1780) at android.content.ContextWrapper.registerReceiver (ContextWrapper.java:755) at com.jaumard.smsautofill.SmsAutoFillPlugin$2.onSuccess (SmsAutoFillPlugin.java:114) at com.jaumard.smsautofill.SmsAutoFillPlugin$2.onSuccess (SmsAutoFillPlugin.java:108) at com.google.android.gms.tasks.zzm.run (com.google.android.gms:play-services-tasks@@18.0.2:1) at android.os.Handler.handleCallback (Handler.java:958) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:205) at android.os.Looper.loop (Looper.java:294) at android.app.ActivityThread.main (ActivityThread.java:8177) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971) Caused by android.os.RemoteException: Remote stack trace: at com.android.server.am.ActivityManagerService.registerReceiverWithFeature (ActivityManagerService.java:13908) at android.app.IActivityManager$Stub.onTransact (IActivityManager.java:2570) at com.android.server.am.ActivityManagerService.onTransact (ActivityManagerService.java:2720) at android.os.Binder.execTransactInternal (Binder.java:1339) at android.os.Binder.execTransact (Binder.java:1275)

itsAkshatG13 commented 6 months ago

Any update on this ? @Toufiqulhaquemamun

Toufiqulhaquemamun commented 6 months ago

Any update on this ? @Toufiqulhaquemamun

Didn't get any update yet

Zeinab-Kouhkan commented 6 months ago

Please check this issue @jaumard

vikasborage commented 6 months ago

it give the same exception for me try with emulator android 14 java.lang.SecurityException: com.package_name: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts and crash the app while receiving the sms for autofill how to solve this if any optional process please tell us

Toufiqulhaquemamun commented 6 months ago

@Zeinab-Kouhkan @itsAkshatG13 @jeffwoooo @vikasborage

it's fixed.... Just add like this in your puspec.yaml sms_autofill: git: url: https://github.com/jaumard/sms_autofill

pranavpatel95 commented 5 months ago

doesn't work, @Toufiqulhaquemamun

azat-asylguzhin-idf commented 5 months ago

Could you please release a new version if the fix is ready?

artem-stefanovich-idf commented 5 months ago

Hi, the same problem

mikhail-chizh-idf commented 5 months ago

Hi, have got the same problem.

JgomesAT commented 5 months ago

ME too

JgomesAT commented 4 months ago

I there not a new version in pub.dev to solve this problem?

cekrozl1 commented 4 months ago

The version has been bumped on master but hasn't been published to pub.dev:

image
cekrozl1 commented 4 months ago

As suggested by @Toufiqulhaquemamun, to use the latest version of the widget directly from github, replace the reference to sms_autofill in your pubspec.yaml by:

image
Zeinab-Kouhkan commented 4 months ago

@Zeinab-Kouhkan @itsAkshatG13 @jeffwoooo @vikasborage

it's fixed.... Just add like this in your puspec.yaml sms_autofill: git: url: https://github.com/jaumard/sms_autofill

thanks, it works.

jaumard commented 3 weeks ago

should be ok on 2.4.0