Hi Everyone,
Need help figuring out an issue with SignInWithPhone crashing on iOS. When it crashes, I get an error along the lines of
"Please register custom URL scheme 'com.googleusercontent.apps.711281515158-jccuuigsa4851bub2f1dfo5qcfihd469' in the app's Info.plist file.' was thrown while invoking signInWithPhoneNumber on target RNFirebaseAuth with params (
"__FIRAPP_DEFAULT",
2392159312,
2538,
2539
)"
IF I add the custom URL scheme it will work, on device and in simulator without an issue, however this method makes that captcha screen appear, and I would rather use the silent notification for it instead.
I have tried to the best of my ability to backtrack through the steps.. enable notifications, take the app ID and enable push notifications for Prod and Dev and enable Cloud Messaging.. with no luck. If the custom URL scheme above is in the Info.plist, it'll always show the captcha system, if i remove it, regardless of notifications being enabled the app will crash.
Am I missing a step? The error message suggests I should always have that custom url in the info.plist, but I am trying to use the silent notifications instead..
@joecaraccio You'll need to follow all the steps here to allow silent notifications to work: https://firebase.google.com/docs/auth/ios/phone-auth#enable-app-verification
Closing due to no further update - please re-open if this is still a problem.
@chrisbianca it is not expleined on the web https://rnfirebase.io/docs/v4.1.x/auth/phone-auth that ist the reason why many users get an error
I'm also facing this issue in ios. I used verifyPhoneNumber and did all the settings. how you solve it? @joecaraccio @hlbp
This needs to be updated. This step isn't included in docs. Has anybody figured this out?
you can see this, it works for me. https://developers.google.com/identity/sign-in/ios/start-integrating
As @zcgit mentioned, if you receive the "Please register custom URL scheme..." error, and you've already done so, make sure you have also installed GoogleSignIn by adding pod 'GoogleSignIn' in your Podfile and running pod install afterward.
Most helpful comment
As @zcgit mentioned, if you receive the "Please register custom URL scheme..." error, and you've already done so, make sure you have also installed GoogleSignIn by adding
pod 'GoogleSignIn'in your Podfile and runningpod installafterward.