Open burekas7 opened 2 months ago
This is the solution:
Pinput(
smsRetriever: Platform.isAndroid ? smsRetrieverImpl : null,
@Tkko Is this the correct way to solve it? I know that previously for iOS the code was shown above the keyboard.
Hi,
I use your
SmsRetrieverImpl
implementation. There is a bug regarding thegetSmsCode()
.It's ok when running Android.
But when running iOS, there is an error:
flutter: SmartAuth getSmsCode is not supported on TargetPlatform.iOS
So I add this condition:
Platform.isAndroid
, but on iOS the screen is getting stuck, I can't press on anything. Maybe it shouldn't bereturn null
? (I tried alsoreturn ''
, doesn't work)Pinput version: 5.0.0
Flutter: 3.24.2 iOS: 17.5.1