Questions tagged [firebase-app-check]

App Check works alongside other Firebase services to help protect your backend resources from abuse by allowing only your apps to access them.

App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing. With App Check, devices running your app will use an app or device attestation provider that attests to one or both of the following:

  • Requests originate from your authentic app
  • Requests originate from an authentic, untampered device

This attestation is attached to every request your app makes to your Firebase backend resources.

App Check has built-in support for using the following three services as attestation providers:

  • DeviceCheck on iOS
  • SafetyNet on Android
  • reCAPTCHA v3 on web apps

If these are insufficient for your needs, you can also implement your own service that uses either a third-party attestation provider or your own attestation techniques.

App Check currently works with the following Firebase products:

  • Realtime Database
  • Cloud Firestore
  • Cloud Storage
  • Cloud Functions (callable functions)

Related tags

315 questions
3
votes
0 answers

How to set AppCheck Debug token for Android Device?

I am currently switching our Flutter App from the AppCheck SafetyNet provider to the PlayIntegrity Provider. Now I can't connect to Firebase any longer from all our development devices (real phones, no emulator) as the debug builds are not coming…
Bob
  • 376
  • 3
  • 18
3
votes
1 answer

Google play integrity API - Invalid app check token error after adding app to Firebase project

I am trying to implement firebase app check in my android app using Play-Integrity API. I have added both my SHA-1 & SHA-256 fingerprints in my firebase app (acquired from Google play console and Android studio gradle signing report both) into my…
user20918628
3
votes
0 answers

App check showing Unverified: outdated client requests for all requests with latest firebase 9.15.0

This is what i got from deployed app on firebase. Description for unverified is saying that i have to update Firebase SDK but i have the latest version. In index.js: import { initializeApp } from "firebase/app"; import { initializeAppCheck,…
3
votes
1 answer

firebaseappcheck.googleapis exchangeDeviceCheckToken error 400 with message "App not registered" and status FAILED_PRECONDITION

I run my app on XCode 14.0. The app runs but I get an error: 2022-10-28 17:55:47.5832 xxx34-0400 x[14690:980363] 8.14.0 - [Firebase/Firestore][I-FST000001] AppCheck failed: 'The operation couldn’t be completed. Too many attempts. Underlying error:…
3
votes
0 answers

How to used the firebase appChek with recapatchaV3 (ReCaptchaV3Provider) in react js

I try to use the firebase's appCheck in my create-react-app with Recaptcha V3 but I have an error which I dont understand : err : Uncaught (in promise) Error: reCAPTCHA placeholder element must be an element or id My code in Firebase-config.js…
3
votes
0 answers

Activate Firebase App Check Debug Provider in React Native iOS app?

From the docs: I have to add this to the AppDelegate.m file: FIRAppCheckDebugProviderFactory *providerFactory = [[FIRAppCheckDebugProviderFactory alloc] init]; [FIRAppCheck setAppCheckProviderFactory:providerFactory]; // Use Firebase library…
Joris Mans
  • 6,024
  • 6
  • 42
  • 69
3
votes
1 answer

AppCheck failed: The attestation provider AppAttestProvider is not supported on current platform and OS version

I am getting the following error when trying to integrate App Check into my iOS app. AppCheck failed: 'The operation couldn’t be completed. The attestation provider AppAttestProvider is not supported on current platform and OS version.' And ever…
Eric
  • 569
  • 4
  • 21
3
votes
1 answer

Permission Denied Error in Android Emulator when Enforcing App Check for Flutter App

After spending hours for getting App Check working on the physical devices (iOS and Android) of my Flutter app i also tried the provided documentation steps in order to get it working for Android emulator as well. Whatever i try i always get the…
valley
  • 157
  • 1
  • 13
3
votes
1 answer

AppCheck fails on ios Simulator

I have appcheck working fine off same codebase on my real ios device, But on the simulator, I'm seeing: await kFirebaseFuncs.httpsCallable('doIt') and PlatformException (PlatformException(failed-precondition, The function must be called from an App…
hunterp
  • 15,716
  • 18
  • 63
  • 115
3
votes
2 answers

How to make SafetyNet/Firebase AppCheck work in Google Play Pre-Launch Reports

I'm using Firebase AppCheck to authenticate that calls to my API are indeed coming from my app. My issue is that ever since I enabled AppCheck, I can only get a token on legit devices or via debug tokens for the emulator. In a way this makes sense,…
PLPeeters
  • 1,009
  • 12
  • 26
3
votes
0 answers

Firebase Cloud Function validate debug AppCheck Token

I have written my own cloud functions and followed Verify App Check tokens from a custom backend to enforce AppCheck on my API. I now want to test my deployed functions with POSTMAN, but the verification denies it with the following…
3
votes
1 answer

Unit testing callable firebase function with App Check enabled

I am trying to unit test my firebase callable cloud function according to the examples provided. See Firebase Example. It boils down to something like this const { expect } = require("chai"); const admin = require("firebase-admin"); const test =…
3
votes
2 answers

CocoaPods could not find compatible versions for pod "FirebaseAppCheck"

When i try to run my app on an ios device simulator (IOS 15.4) here what happen : [!] CocoaPods could not find compatible versions for pod "FirebaseAppCheck": In Podfile: firebase_app_check (from .symlinks/plugins/firebase_app_check/ios) was…
Jeremy Dormevil
  • 430
  • 1
  • 8
  • 22
3
votes
0 answers

Implement Flutter App Check Breaking Firebase storage on Android

The Firebase storage is keep throwing auth issue. Even when I am able to successfully get the user information from firebase auth instance By using Miscellaneous.logMessage( Tag, "currentUser ${FirebaseAuth.instance.currentUser}"); App Check…
3
votes
0 answers

How do I set up Debug App Check for a Flutter app? (Firebase)

Nothing I do seems to want to work. I've followed all the steps on FlutterFire and from a few different places here on Stack Overflow, but I get lots of different issues. I never get given the token in my console, and when I try to call a Firebase…