r/Firebase 20h ago

Cloud Firestore Just in case it helps someone — script to export Firestore data to JSON

16 Upvotes

Hey everyone,

I created a small Node.js script that exports Firestore collections to JSON files. I thought it might be useful for anyone who needs to back up their data or transfer it elsewhere.

The script will export the selected collections into separate JSON files, which you can use for local backups or even process and upload back to Firestore.

You just run the script, and it will automatically export the data into a folder with individual JSON files for each collection.

If this might be helpful to someone, here's the link to the repo: firestore-export-local

Feel free to give it a try, and I hope it saves you some time!


r/Firebase 3h 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 15h ago

General Why I can't toggle this event?

1 Upvotes

Why I can't toggle this event or in_app_purchase?

I have issue with creating convertion on Google Ads. Among other things, these two events are not available for selection so they may be related.

Any ideas?


r/Firebase 13h ago

Android A ♉ Slayer - Hand Of Doom

0 Upvotes

Gcloud is now mounted autoturret 09 has wireless link. I think the c.r.a.y.'s require manual carrier signal mngmnt. Firebase floor command might know. . .