sms_autofill icon indicating copy to clipboard operation
sms_autofill copied to clipboard

await SmsAutoFill().hint not working

Open Shub0327 opened this issue 8 months ago • 1 comments

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.auth.api.credentials.HintRequest$Builder" on path: DexPathList @override void initState() { super.initState();

Timer(Duration(milliseconds: 1000), () {
  initMobileNumberState();
});

}

Future initMobileNumberState() async { try { String? hint = await SmsAutoFill().hint; String? number = _formatPhoneNumber(hint ?? ""); _signInController.phoneNumberController.text = number; // _signInController.phoneNumber.value = number; } on PlatformException catch (e) { debugPrint("Failed to get mobile number because of '${e.message}'"); } }

Shub0327 avatar Jun 11 '24 12:06 Shub0327