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
When providing empty string phone number to verifyPhoneNumber, PlatformException is thrown but cannot be catched from Dart side. Neither verificationFailed nor using catch block can catch it. Is preventing the string to be empty in the first place the only solution?
The following PlatformException was thrown while activating platform stream on channel plugins.flutter.io/firebase_auth/phone/a273d10d-961c-4aaf-8878-a1d45939c616:
PlatformException(error, The given phoneNumber is empty. Please set a non-empty phone number with #setPhoneNumber(), null, null)
When the exception was thrown, this was the stack:
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7)
message_codecs.dart:651
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:322:18)
platform_channel.dart:322
<asynchronous suspension>
#2 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:664:9)
platform_channel.dart:664
<asynchronous suspension>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When providing empty string phone number to
verifyPhoneNumber
,PlatformException
is thrown but cannot be catched from Dart side. NeitherverificationFailed
nor using catch block can catch it. Is preventing the string to be empty in the first place the only solution?Beta Was this translation helpful? Give feedback.
All reactions