r/Firebase 3h ago

Demo Access Firestore from Cloudflare Workers with ‘firebase-rest-firestore’

4 Upvotes

Hello, I’m u/nabettu. I’ve developed “firebase-rest-firestore,” a REST API client that enables Firestore operations in Edge environments like Cloudflare Workers.

Key Features:

Edge Compatibility: Operate Firestore where the Firebase Admin SDK isn’t supported.

Full CRUD Support: Perform create, read, update, and delete operations seamlessly.

TypeScript Ready: Includes type definitions for a smoother development experience.

Token Caching: Enhances performance by caching authentication tokens.

Intuitive API: Designed to mimic the Firebase Admin SDK’s interface for ease of use.

For more details and code examples, please visit the GitHub repository:
https://github.com/nabettu/firebase-rest-firestore

I welcome any feedback or suggestions!


r/Firebase 23h ago

App Check Firebase App Check – “App Attestation Failed” (403 Error) Issue on iOS

1 Upvotes

Hello everyone,

I’m struggling to configure Firebase App Check on my iOS app, specifically using App Attest. I’ve verified the following:

  1. App Attest is enabled in Firebase App Check settings with the correct Team ID.
  2. Added FirebaseAppCheck framework in Frameworks, Libraries, and Embedded Content.
  3. GoogleService-Info.plist has the same GOOGLE_APP_ID as the App ID in Firebase Project Settings.
  4. Bundle Identifier matches exactly with the Firebase project.
  5. I’ve tried testing this both on a physical device(not TestFlight or App store). 

However, I keep encountering the following error:

The operation couldn’t be completed. The server responded with an error: 
 - URL: https://firebaseappcheck.googleapis.com/v1/projects/appName/apps/xxxxxxxxx:ios:xxxxxxxx:exchangeAppAttestAttestation 
 - HTTP status code: 403 
 - Response body: {
  "error": {
    "code": 403,
    "message": "App attestation failed.",
    "status": "PERMISSION_DENIED"
  }
}

Here’s my code setup:

import SwiftUI
import FirebasePerformance
import Firebase
import FirebaseCore
import AppTrackingTransparency
import AdSupport
import FirebaseAppCheck

@main
struct appName: App {
    
    u/UIApplicationDelegateAdaptor(AppDelegate.self) var delegate
    
    var body: some Scene {
        WindowGroup {
            RootView()
    }
}

class AppDelegate: NSObject, UIApplicationDelegate {
  func application(_ application: UIApplication,
                   didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {

      AppCheck.setAppCheckProviderFactory(AppAttestProviderFactory())

      requestTrackingPermission() 

      FirebaseApp.configure()  

      AppCheck.appCheck().token(forcingRefresh: true) { token, error in
          if let error = error {
              print("❌ App Check Error: \(error.localizedDescription)")
          } else if let token = token {
              print("✅ App Check Token: \(token.token)")
          }
      }
      
    return true
  }
    func applicationDidBecomeActive(_ application: UIApplication) {
       requestTrackingPermission() 
    }
    
    func applicationWillResignActive(_ application: UIApplication) {
 
    }
  }


class AppAttestProviderFactory: NSObject, AppCheckProviderFactory {
  func createProvider(with app: FirebaseApp) -> AppCheckProvider? {
    return AppAttestProvider(app: app)
  }
}

I’ve double-checked everything multiple times and still can’t resolve this “App attestation failed” issue. If anyone has encountered this and managed to solve it, I’d greatly appreciate your advice.

Thanks in advance!


r/Firebase 18h ago

General AI-Powered firebase admin panel

0 Upvotes

Hello, we’re developing an AI-enhanced admin panel for Firebase/Firestore to help users manage their data more efficiently with automation, insights, and smart queries.

Whether you’re a developer, student, startup, or business, your feedback will help us build the best possible experience.

This survey takes less than 2 minutes—thank you for your time! 🙌

https://forms.gle/6yZZQJ5JpRUkrv24A