[firebase_app_check]
FirebaseAuthException 'internal-error' on iOS with Google Sign-In Despite Perfect Configuration
#17691
Unanswered
DavidAgbaje5
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When attempting to use Google Sign-In on a physical iOS device (both debug and release builds), the
FirebaseAuth.instance.signInWithCredential
call fails with aFirebaseAuthException
whose code isinternal-error
. This occurs even though Firebase App Check appears to be perfectly configured on both the client and server. The error suggests a server-side failure during App Check token validation.Steps to Reproduce
FirebaseAuth.instance.signInWithCredential
call is made.Expected behavior
The user should be successfully signed into Firebase.
Actual behavior
The
signInWithCredential
method throws aFirebaseAuthException
with the codeinternal-error
.Exhaustive Troubleshooting Steps Taken
We have performed an exhaustive series of diagnostic steps that rule out all common configuration errors. The issue is not a user configuration error.
Client-Side Configuration (iOS):
App Attest
capability is enabled in Xcode.Runner.entitlements
file contains<key>com.apple.developer.devicecheck.appattest-environment</key><string>production</string>
.GoogleService-Info.plist
is up-to-date and is a member of the mainRunner
build target.AppDelegate.swift
does not contain a conflicting manualFirebaseApp.configure()
call.Server-Side Configuration:
Build Environment & Dependencies:
firebase_*
andgoogle_sign_in
packages to the latest stable versions.flutter clean
, deleting app from device, removingPods
andPodfile.lock
, and runningpod install --repo-update
).Ultimate Isolation Test:
GoogleService-Info.plist
from a brand new, clean Firebase project. This proves the issue is not in the Firebase project's backend configuration but is local to the app code/dependencies.This appears to be a deep incompatibility or bug within the FlutterFire SDKs.
Beta Was this translation helpful? Give feedback.
All reactions