Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmsAutoFill.hint not open hint dialog #241

Open
Vikash-mesky opened this issue Aug 16, 2024 · 2 comments · May be fixed by #246
Open

SmsAutoFill.hint not open hint dialog #241

Vikash-mesky opened this issue Aug 16, 2024 · 2 comments · May be fixed by #246

Comments

@Vikash-mesky
Copy link

Unhandled Exception: PlatformException(ERROR, 16: [28432] API has been disabled., com.google.android.gms.common.api.ApiException: 16: [28432] API has been disabled.

E/flutter (25511): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter (25511): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter (25511):
E/flutter (25511): #2 SmsAutoFill.hint (package:sms_autofill/sms_autofill.dart:33:28)
E/flutter (25511):
E/flutter (25511): #3 AuthLoginScreen.build. (package:ryder_app/modules/auth/view/ui/login_screen.dart:73:36)
E/flutter (25511):

@aneeshdevala
Copy link

in android its working for me

@CyberWake
Copy link

I to have faces this. It is mostly happening when the method channel call fails. In my case it failed due to the android device I used did not had a sim in it plus it was a new device provided I never got a sim card in it. Hence it failed to detect any phone number.
I have added a fix to this by adding a try catch block to consume any method channel failure calls within the library and return the fallback null result from hint getter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants