Closed lxrinc closed 8 months ago
Hi @lxrinc - Thanks for submitting the issue. I looked at your project downloaded code and I can reproduce above error message. However, in general plist property details related to url schema it looks all right. See below. Not really sure how your project got this error.
I would suggest, re-built the iOS version one or two more times and see consistency of the issue. If issue still persists, I can mark this as project specific issue. Let me know how it goes. Thanks
@hariprasadms I have redeployed several times but the issue persists. I cross-checked with Email Auth and it works well but with Phone Auth, it is still persisting the error only on IOS.
I set up another project to check if it was with the project I shared with you only, however in the new project - the error is still persisting on IOS. I have tried multiple IOS devices and the issue remains. Yet, Email Auth works very well on the new project too.
How can it be resolved?
Hi, Sorry, I looked your project again but I see CFBundleURLSchemes value is not populated. I think this could be the issue. Can you please check and add this value manually from downloaded GoogleService-info.plist file
Sample -
Below is your project info.plist file.
I looked at your project GoogleService-info.plist file and REVERSED_CLIENT_ID is not present in the file. I can mark this as a project specific bug. Dev team can investigate shortly.
Meanwhile you can regenerate the firebase config files and see if that can resolve the issue. If it can fix the issue, please close the issue. Thanks
Hi, @hariprasadms I regenerated the Firebase config, and yet the error is persisting. I will wait for your feedback.
@hariprasadms This issue is persisting. Kindly look into this. cc @agreaves
same problem
same problem
Everyone facing this issue, if you download the GoogleServiceInfo.plist
file from the Firebase console (it should be inside gear icon(left panel)> Project settings > General > scroll down and select the iOS app), does it contain the REVERSED_CLIENT_ID
field?
@sbis04 It doesn't contain the REVERSED_CLIENT_ID in the GoogleServiceInfo.plist
@lxrinc Okay. And, just making sure, in Firebase Authentication which auth methods do you have enabled (is it only Phone Auth)?
@sbis04 Initially it was Phone Auth only however since it wasn't working on IOS enabled Email too. It is not working even with email as active.
Hmm, this is interesting. Not sure why REVERSED_CLIENT_ID
is not present in the file, I'll investigate into it further.
@lxrinc One more question, did you try Regenerate Config File
from Settings > Firebase
inside FlutterFlow? Did that still not fix the issue?
@sbis04 Yes I did that a few times, assuming that was the problem but it still persisted.
@lxrinc Can you try these steps once?
GoogleService-Info.plist
has the REVERSED_CLIENT_ID
field now.Let me know if this helps in any way.
@sbis04 It worked! Thank you so much
Nice, thanks for letting me know! This seems like some kind of bug on the Firebase side, because phone auth requires the REVERSED_CLIENT_ID
still it doesn't get generated unless Google Sign In is enabled in some cases.
can this be fixed because this requires us to do some extra config that our apps doesn't really needs. Thank you
can this be fixed because this requires us to do some extra config that our apps doesn't really needs. Thank you
try to enable email & google sign in on project firebase, even if you don't use it, that fixed this error for me.
can this be fixed because this requires us to do some extra config that our apps doesn't really needs. Thank you
try to enable email & google sign in on project firebase, even if you don't use it, that fixed this error for me.
Yea this a workaround, not a fix.
can this be fixed because this requires us to do some extra config that our apps doesn't really needs. Thank you
try to enable email & google sign in on project firebase, even if you don't use it, that fixed this error for me.
Do I have to keep these options turned on afterwards? Even if I don't use them? For better operation and not generating the error or I can turn it off.
Getting same error, I tried to regenerate the config file but the issue persists. any solution?
Copy the value inside the single quotes from the Snackbar, for example: 'app-1-123456789-ios-bcbaac540bd7dae7a'.
Open your Flutter project.
Locate the ios folder in your project directory.
Right-click on the ios folder and choose "Open in Xcode".
In Xcode, find the name of your project on the left, right-click on it, and choose "Open in Finder".
In the Finder window, locate the "Runner" folder.
Inside the "Runner" folder, double-click to open the Info.plist file.
In the opened Info.plist file, switch to the "Information Property List" view at the top.
To add URL Types, right-click on an empty space, and select "Add Row".
In the added row, go to the left column and name it "URL types".
In the right column of the added row, click on the dropdown arrow and create "Item 0" underneath.
Under "Item 0", set URL Identifier to "app-1-123456789-ios-bcbaac540bd7dae7a".
Under "Item 0", set URL Schemes to "app-1-123456789-ios-bcbaac540bd7dae7a".
Save your changes and close Xcode.
And restart your project
Has your issue been reported?
Current Behavior
I am trying to login on IOS using test flight and receiving an error when I press the sign-in button. A snack bar shows up with the error "Please register custom URL scheme 'app...'in the app's info.plist file (IOS)".
Expected Behavior
I expected the screen to redirect to the phone verification screen where a verification code is sent. It works very well on Android devices but IOS, it is giving an error.
Steps to Reproduce
https://github.com/FlutterFlow/flutterflow-issues/assets/117313181/8c0c1308-f38a-41f6-85ae-0e4b80927751
Reproducible from Blank
Bug Report Code (Required)
ITEehcmA0492pbwA0LrcK8FslQMwJ0QlUIInj+0bWRMhNZfpEZYAf+DSTBFLYtTne25+C1WYhnkC0PTzkezxGvYEHxedfJxZ+b5XQQ7heDqlbK2VDqWwOnBCQJ1XJ2Kz0Z7Qvx0mAM1udVYG6mePevCdG3qCf9qOYwx5e6fDbOY=
Context
I am trying to test my app on iphone devices but after the login screen I cannot proceed to test the app.
Visual documentation
https://github.com/FlutterFlow/flutterflow-issues/assets/117313181/99b86bbc-7963-4224-8ad4-e6a1e28260e7
Additional Info
No response
Environment