Repository navigation
Replies: 1 comment
|
Hi, The error message points to callable request verification on the Cloud Functions side. In particular, "Decoding App Check token failed" means the server received an App Check value that it could not parse as a valid token. It does not, by itself, prove that "targetSdkVersion 35" is the root cause. There are a few things I would isolate before changing the Android build configuration:
Run this on Windows: flutter pub deps --style=compact | findstr /i firebase_app_check If "firebase_app_check" is present, check whether "FirebaseAppCheck.instance.activate()" is called during startup. Also check whether any native code or custom HTTP layer manually adds an "X-Firebase-AppCheck" header. If App Check is intentionally not being used, try a controlled build without the App Check package or activation, then compare the callable request result.
Check the actual deployed "onCall" definition and the "firebase-functions" version in your Functions project. For example, in Functions v2: exports.yourFunction = onCall( With enforcement disabled, current Firebase documentation says invalid App Check tokens should result in "request.app" being undefined rather than automatically rejecting the request. If the request is rejected, verify that the deployed function really has the configuration you expect.
Please check whether the callable verification log reports:
"INVALID" is particularly relevant here because it means the request is not simply missing an App Check token. There is also a closely related report with the same token-decoding error in the Firebase Admin Node.js repository:
I would first establish why Android is sending an invalid App Check value. Changing "targetSdkVersion", SHA fingerprints, or Gradle versions without that evidence may hide the actual issue. References: |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
after upgrade flutter and all dependencies (to set
targetSdkVersionto 35), I have same issue with cloud_functions.If I call from IOS environment, I can call and use my functions. In android, I can't and in console log I have:
Failed to validate AppCheck token. FirebaseAppCheckError: Decoding App Check token failed. Make sure you passed the entire string JWT which represents the Firebase App Check token..But I don't have AppCheck enabled. And my code hasn't changed.
Any idea?
Thank you, Mario.
All reactions