Flutter_Pinput
Flutter_Pinput copied to clipboard
Doesn't work on PWA WEB
Hello, the pinput library works on android correctly, but it doesn't work on mobile browser(it doesn't read opt from sms and fill the field), please help me.
Hi, what exactly isn't working?
In pwa mode on the mobile phone (android) when the OTP is received by SMS, the received code is not placed in the box.
Is there a special setting needed for the browser on the mobile phone?
That's an expected behavior. The SMS retriever API only works in compiled Android app.
i checked in 2 modes: smsUserConsentApi, smsRetrieverApi , both of them are same. in pub.dev, you told support WEB
Sorry, forgot to mention, none of these APIs are working on the Web. If you send supposed SMS format the code will pop up on the keyboard.
The supported SMS formats aren't clear, but it seems to work in English most of the time. For example:
Code 466345
thanks man, Even the received code is not placed at the top of the keyboard area.
Hmm, Just checked and it's not working on Android Web. But it has to be working out of the box with TextField if you pass
autofillHints: [AutofillHints.oneTimeCode],
https://api.flutter.dev/flutter/material/TextField/autofillHints.html https://api.flutter.dev/flutter/services/AutofillHints/oneTimeCode-constant.html