You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use your SmsRetrieverImpl implementation.
There is a bug regarding the getSmsCode().
@override
Future<String?> getSmsCode() async {
final res = await smartAuth.getSmsCode();
if (res.succeed && res.codeFound) {
return res.code!;
}
return null;
}
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 be return null? (I tried also return '', doesn't work)
@override
Future<String?> getSmsCode() async {
if (Platform.isAndroid) {
final res = await smartAuth.getSmsCode();
if (res.succeed && res.codeFound) {
return res.code!;
}
}
return null;
}
Pinput version: 5.0.0
Flutter: 3.24.2
iOS: 17.5.1
The text was updated successfully, but these errors were encountered:
Hi,
I use your
SmsRetrieverImpl
implementation.There is a bug regarding the
getSmsCode()
.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 be
return null
? (I tried alsoreturn ''
, doesn't work)Pinput version: 5.0.0
Flutter: 3.24.2
iOS: 17.5.1
The text was updated successfully, but these errors were encountered: