Google Sign-In crashes on iOS because FF_REVERSED_CLIENT_ID is not replaced in Info.plist

Troubleshooting

Hi everyone,

I'm experiencing an issue with Google Sign-In on iOS in FlutterFlow.

Setup

  • FlutterFlow latest version

  • Firebase Authentication

  • Google Sign-In enabled

  • Apple Sign-In enabled (working correctly)

  • Local Run on a physical iPhone

  • Firebase project connected successfully

Problem

Whenever I tap the Google Sign-In button, the app immediately crashes.

Xcode shows the following exception:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'Your app is missing support for the following URL schemes:
com.googleusercontent.apps.695462792732-a50gep42f6d52h0tipqcgmu5m6m1um7e'

What I found

In my generated ios/Runner/Info.plist, FlutterFlow creates:

<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleTypeRole</key>
    <string>Editor</string>
    <key>CFBundleURLSchemes</key>
    <array>
      <!--FF_REVERSED_CLIENT_ID-->
    </array>
  </dict>
</array>

The placeholder FF_REVERSED_CLIENT_ID is never replaced with the actual value from Firebase.

Thanks in advance!

What have you tried so far?
  • Regenerate Config Files

  • Reconnect Firebase Project

  • New Local Run

  • Flutter clean

  • Pod install

  • Verified that Google Sign-In is enabled in Firebase Authentication

  • Verified that the iOS client exists in Firebase

Unfortunately, the placeholder remains unchanged after regenerating the config files.

Did you check FlutterFlow's Documentation for this topic?
No
2
4 replies