Usage of @capacitor-firebase/app-check #844
Unanswered
jannisgries
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Which Capacitor plugin do you use for the Firebase Realtime Database? |
Beta Was this translation helpful? Give feedback.
3 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Implementing Firebase App Check in an Angular Project with Capacitor
I'm currently integrating Firebase App Check into my existing Angular project. Since I am using Capacitor, my web application and iOS app share the same codebase.
Web Implementation
For the web version, I added
provideAppCheck()
to my Angular module'simports
section. Here’s how my imports look:On the web, this setup works perfectly—I can access the Realtime Database, which has App Check enforcement enabled.
iOS Implementation with @capacitor-firebase/app-check
For the iOS version, I opted to use
@capacitor-firebase/app-check
. I initialize Firebase App Check in theAppModule
constructor, along with the required setup in Xcode.The Issue: Missing App Check Token on iOS
Even though
FirebaseAppCheck.initialize()
successfully logs a token, when I try to call the Realtime Database from my iOS app, I get a warning that no token exists, and access is blocked.This issue persists even when I manually check for the token just before making the database request:
Looking for Help
I would really appreciate any guidance on:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions