I am using SMS sending feature in firebase flutter. With Android it works normally, but with iOS it always authenticates but the capcha authentication screen then hangs on a blank page. I have configured as documented their URLSchemes entry, but it doesn’t work in the application. If I paste that link into the browser, it still works, proving that I did the URLSchemes correctly
Firebase auth: firebase_auth: ^4.19.4
my code :
static Future sendSMS(String phoneNumber) async {
await auth.verifyPhoneNumber(
phoneNumber: '+84$phoneNumber',
timeout: const Duration(seconds: 60),
verificationCompleted: (PhoneAuthCredential credential) {},
verificationFailed: (FirebaseAuthException e) {
print(e);
},
codeSent: (String verificationId, int? resendToken) async {
verificationIdSMS = verificationId;
codeAutoRetrievalTimeout: (String verificationId) {
},
);
}
info.plist:
URLSchemes
firebase app:
firebase app
bug:
bug
is expected to be able to complete authentication
1