sms_autofill
sms_autofill copied to clipboard
listenForCode() throw platform exception after upgrading flutter 3.7.7
listenForCode() throw platform exception after upgrading flutter 3.7.7
this issue happens only on api 33 "i tested it on api 32 and api 29 it works fine without any issues" i edited onrecivefailed method to show the exception
E/flutter ( 8714): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(ERROR_START_SMS_RETRIEVER, Can't start sms retriever, com.google.android.gms.common.api.ApiException: 17: Device doesn't support the messaging feature
E/flutter ( 8714): at com.google.android.gms.common.api.internal.TaskUtil.setResultOrApiException(com.google.android.gms:play-services-base@@18.0.1:4)
E/flutter ( 8714): at com.google.android.gms.common.api.internal.TaskUtil.setResultOrApiException(com.google.android.gms:play-services-base@@18.0.1:1)
E/flutter ( 8714): at com.google.android.gms.internal.auth-api-phone.zzz.zzb(com.google.android.gms:play-services-auth-api-phone@@17.5.1:1)
E/flutter ( 8714): at com.google.android.gms.internal.auth-api-phone.zzi.zza(com.google.android.gms:play-services-auth-api-phone@@17.5.1:2)
E/flutter ( 8714): at com.google.android.gms.internal.auth-api-phone.zzb.onTransact(com.google.android.gms:play-services-auth-api-phone@@17.5.1:3)
E/flutter ( 8714): at android.os.Binder.execTransactInternal(Binder.java:1285)
E/flutter ( 8714): at android.os.Binder.execTransact(Binder.java:1244)
E/flutter ( 8714): , null)
E/flutter ( 8714): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)
E/flutter ( 8714): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:315:18)
E/flutter ( 8714):
that was the exception that been logged for me i hope you find a solution to migrate with latest flutter or dart sdk versions
same issue
Same issue here
Same Issue Here
any update on this ?
Any update on this?
Acctually i found that this is an google play services error or something .... That issue kept coming for me untill i changed the emulator with the same android api version Its gone then Also i was getting this error on my real device one day and another day its not happening it works perfectly am not sure what is it all about ... But for the quick fix try create another emulator or device
you can use this package : https://pub.dev/packages/otp_pin_field
should be ok on 2.4.0