143,585 questions
0
votes
0
answers
25
views
Firebase Firestore Enterprise edition - Set rules for users in the database
How to create the rules and connect (read / write using the firestore database) from an android app?
Google Firestore Editions Overview
val db = Firebase.firestore
val userData = hashMapOf(
"...
-1
votes
0
answers
65
views
Play Store android app rejected due to suspected firebase auth 403 in review environment [closed]
Out of the blue, updates of our app have starting being rejected by the Play Store reviewers because they cannot log in using the supplied test credentials.
We use Firebase to manage our auth.
We ...
1
vote
0
answers
36
views
What domain to add to Firebase Authentication for Firebase Studio with Google Auth?
I'm using Firebase studio to generate a small app, with Google Auth enabled. The app shows up fine, but when trying to use the Google Auth, like this:
async function logInWithGoogle(auth: Auth) {
...
Advice
2
votes
0
replies
52
views
Why is my DAU different between Google Play Console, Firebase Analytics, and AdMob?
I’m having an issue with my DAU (Daily Active Users) numbers. I have two Android apps on Google Play, and the Google Play Console shows the following:
App 1: ~20,000 DAU
App 2: ~11,000 DAU
Total: ~...
-1
votes
1
answer
61
views
Google Sign-In fails with ApiException: 10 [closed]
i am new to Flutter + Firebase Auth and I’m having a strange intermittent issue with Google Sign-In.
Sometimes it works perfectly, and sometimes I get these errors:
PlatformException(channel-error, ...
-1
votes
1
answer
86
views
Flutter app shows black screen on iOS device (works on Android, no errors)
I'm trying to run my Flutter app on a real iOS device.
The app installs successfully, Firebase initializes, and logs show normal navigation (Splash → Onboarding).
But the screen becomes completely ...
0
votes
0
answers
40
views
iOS Firebase appears to hang due to StoreKit (which isn't being used)
In the past few weeks something apparently has changed with xcode/Apple which is causing our iOS regression tests to hang on authentication using Firebase.
Googling the interleaved log error Error ...
0
votes
0
answers
69
views
Unity - Libraries of ARM64 not supporting 16 KB page size
I’m currently testing my Unity project for Android 15 compliance (Google Play requirement for 16 KB memory page sizes).
After upgrading to Unity 6000.0.62f1 (which claims to support 16 KB page size by ...
-4
votes
0
answers
61
views
Why is my Firebase Firestore query so slow, even with a small dataset? [closed]
Common reasons Firestore queries feel slow:
Missing Indexes
Composite queries require indexes. Firestore will show an error with a link to create one.
Large documents
Firestore charges & loads ...
0
votes
1
answer
53
views
How to change project name shown in Google Sign-In popup?
I have a frontend and a separate backend project. We use our own authentication system, and Firebase is used only for Google Sign-In.
The flow is:
Frontend uses Firebase to sign in with Google (popup)...
0
votes
0
answers
41
views
Workspace in Firebase Studio is stuck in a continuous loading stage
I am facing issue in loading of workspace in firebase studio, tried full browser clear data all time, checked allow third party cookies, used Edge browser as well. But still issue of workspace loading ...
-1
votes
1
answer
68
views
Firebase Missing or invalid credentials
From firebase i tried to git push, the authentication screen opened after entering credentials its redirected to my local machine, but the terminal is waiting for code, I tried pasting the code from ...
-1
votes
0
answers
59
views
Expo Notifications on Android — InvalidCredentials: Unable to retrieve the FCM server key
I'm trying to get Expo push notifications on Android working and I'm stuck with this error:
InvalidCredentials: Unable to retrieve the FCM server key for the recipient's app. Make sure you have ...
0
votes
0
answers
43
views
Firebase Functions Deployment Fails: npm ci Can't Install Packages - package-lock.json Out of Sync Despite Fresh Installation [closed]
I'm trying to deploy a Firebase Cloud Function (2nd gen) but keep getting the same npm ci error about package.json and package-lock.json being out of sync, even after completely deleting and ...
0
votes
1
answer
40
views
Firebase deploy getting eslintrc error, module not found
Im only using firebase functions, im building a flutter app for android and ios and my backend will be firebase functions, firestore, etc.
Everything is working just fine in my local, but when I ...
1
vote
1
answer
74
views
Firebase Crashlytics causing NoSuchMethodError for checkNotGoogleApiHandlerThread() in Flutter app
My Flutter app is crashing on startup with NoSuchMethodError when Firebase tries to initialize. The method checkNotGoogleApiHandlerThread() is not found in the Preconditions class, causing a FATAL ...
Advice
0
votes
3
replies
74
views
Can multiple Firebase projects be linked to a single Google Cloud project?
I am working with Firebase and Google Cloud Platform, and I need clarification on the relationship between Firebase projects and Google Cloud projects. Specifically, I want to understand if it's ...
0
votes
1
answer
132
views
Firebase initialization failed on physical iPhone (iOS 26.1) – channel-error & iOS 14 deployment target issues
I’m facing a persistent issue when running my Flutter iOS app on a physical iPhone and iOS simulator (iOS 26.1). I am using the latest Flutter and Dart versions and my project is integrated with ...
0
votes
1
answer
38
views
Firebase Functions v2 onCreate user [duplicate]
I can not for the life of me figure out why this is complaining. I was able to make an onCall function just fine (removed it here)... but when I make a firebase auth onCreate function, the get the ...
1
vote
0
answers
53
views
How `fetch` and filters with date works on Firebase Remote Config?
I have an APP that fetchs and updates the Remote Config values on each initialization:
remoteConfig.FetchAndActivateAsync();
I have a date filter on my Remote Config to only change some parameters ...
1
vote
0
answers
74
views
Is it normal for Flutter's main() function to execute as soon as a firebase notification is received in system notifications bar?
is it normal for Flutter's main() function to execute as soon as a firebase notification is received in system notifications bar?
I am testing on Android 15 in a Pixel device.
Here's what I did:
I ...
0
votes
1
answer
110
views
Firebase version 3.4.0 not support GoogleCredential.FromFile("")
I’m using Firebase Admin .NET SDK v3.4.0 with .NET 8.
The methods GoogleCredential.FromFile(), FromJson(), and FromStream() are not available anymore in this version.
I need to load my Firebase ...
Best practices
0
votes
3
replies
68
views
How to not write a Firestore Converter for each type. (Firestore + Unity / C#)
I am using Firestore and Unity, I want to be able to serialize a Unity class, say Vector2Int so I write a Vector2IntConverter(FirestoreConverter<Vector2Int>).
When I upload my DTO, say:
[...
0
votes
0
answers
49
views
Can you bypass Safari popup when signing in with email link to Firebase on iOS with React Native?
I’m trying to get Firebase email link sign-in working smoothly on iOS.
The link users get in their email comes from projectname.firebaseapp.com/__/auth/links?link=..., which then redirects to my ...
0
votes
0
answers
52
views
Persistent Firebase "auth/unauthorized-domain" error despite domain being correctly added in a dynamic environment
I'm developing a React web application using Firebase for authentication (Google Sign-In) and Firestore. I'm running into a persistent auth/unauthorized-domain error that I can't resolve, despite ...
0
votes
0
answers
28
views
Firebase Init Hosting failed to return firebase projects
As follows, I run firebase init hosting and it returns:
Error: Failed to list Firebase projects. See firebase-debug.log for more info.
I tried logging in and out of firebase and running:
gcloud ...
1
vote
0
answers
43
views
"permission denied" error in Cloud Function that imports gmail
I'm stuck getting a "permission denied" error when using the gmail googleapi in a firebase cloud function to "import" syntetic emails to a workspace email box.
I've followed this ...
0
votes
1
answer
82
views
Firebase causing Unity Android build to fail
======
cocoapods-1.16.2
Unity 6000.0.41f1
Firebase 13.4.0
OSX 15.5
ISSUES:
Android: not building
> Could not resolve all files for configuration ':launcher:debugRuntimeClasspath'.
> Could ...
1
vote
0
answers
63
views
Not able to save document using React Native 0.81.4 & firebase
I am using react-native 0.81.4 CLI along with the following Firebase packages:
"@react-native-firebase/app": "^23.5.0",
"@react-native-firebase/firestore": "^23.5.0&...
0
votes
1
answer
104
views
Migration of Firebase projects / Google analytics 4 properties
We are in the process of merging 2 separate applications(Android & iOS) into one. Each of the application has its own Firebase project, and its own Google Analytics 4 property. So essentially we ...
1
vote
1
answer
65
views
GCloud Error: Caller is missing permission 'iam.serviceaccounts.actAs' on service account [closed]
Situation
This is pretty much my first experience with cloud tools. I'm trying to enqueue (schedule) a cloud task from a cloud function which gets called from my flutter app, the task would at the ...
1
vote
0
answers
65
views
Error in firebase cloud functions document trigger using V2 functions: Failed to decode protobuf and create a before snapshot
I am migrating my Firebase Cloud Functions project from v1 to v2.
Since Auth triggers are not yet available in v2, I still have auth triggers in v1 — but all my Firestore triggers are now v2.
All of ...
0
votes
0
answers
48
views
unable to deploy to firebase functions
package.json
{
"name": "functions",
"scripts": {
"lint": "tslint --project tsconfig.json",
"build": "tsc",
"...
0
votes
0
answers
65
views
Firebase signInWithRedirect always returns null after redirect
I am using Firebase Authenticatioin in my svelte app.
I called getRedirectResult in onMount and if it returns null, then, I call signInWithRedirect and getRedirectResult again.
I confirm that the page ...
0
votes
0
answers
74
views
403 PERMISSION_DENIED on Route Optimization API from Firebase App Hosting Despite Correct IAM & API Setup
Problem Description:
I am developing a Next.js application deployed on Firebase App Hosting. The application calls the Google Cloud Route Optimization API from a Server Action.
Despite carefully ...
0
votes
0
answers
93
views
Can't connect to firebase auth emulator
I successfully had the firebase auth emulator working a few days ago, but it has mysteriously stopped working. I get a generic network error when trying to authenticate with any platform. I am using a ...
0
votes
0
answers
48
views
Firebase Remote Config - Reference other parameter
I have an Android app which used Firebase Remote Config. Old versions of my app references a parameter, let's call it parameterA, which has a string type. I would like to create another derived ...
1
vote
0
answers
84
views
What is the difference between the web API key and key under "Your Apps"
I noticed that in my Firebase project, under Project Settings > General, the value beside "Web API Key":
is different from the apiKey value in the Your Apps section just below that:
Why ...
0
votes
0
answers
64
views
Flutterflow - how to add question to textbox
We're currently developing an app using flutterflow for our class, but we've gotten stuck with connecting our firebase, which contains the questions, with the textbox in flutterflow. We want the ...
0
votes
2
answers
124
views
Cannot connect to Firestore from Flutter project (Android)
I'm using Flutter in Visual Studio Code and Android Studio with a Pixel 6a emulator with Android 13 to preview the app.
Despite I could connect to other services of Firebase (Authentication, Storage, ...
0
votes
2
answers
172
views
Android Gemini AI SDK (firebase-vertexai-ktx) fails with 404 Not Found (v1beta endpoint) despite latest library version
I'm developing an Android app using Kotlin and Jetpack Compose. I'm trying to integrate Gemini AI to analyze images uploaded by the user using the Firebase Vertex AI SDK (com.google.firebase:firebase-...
0
votes
1
answer
99
views
Is there a way to handle situations where a user has blocked more than 10 users, so that the app doesn’t exceed Firestore’s not-in query limit?
func fetchNextPage() async {
guard !isLoading, !reachedEnd else { return }
isLoading = true
defer { isLoading = false }
let excluded = Array(BlockService.shared.blocked.prefix(10))...
0
votes
0
answers
79
views
Failed to get FirebaseApp Instance in Xcode Preview after Modularization
Upon moving a view and it's ViewModel(where i am using Firestore) from the main app module to it's own module, my Canvas Previews crash with the error:
XCPreviewAgent crashed due to an uncaught ...
1
vote
1
answer
130
views
Unresolved reference: FirebaseMessagingService even after adding firebase-messaging dependency in Flutter Android module
I have an app that I want to add Firebase Cloud Messaging. Now, when configuring the services, I am getting this error in my Kotlin file:
Cannot resolve symbol 'FirebaseMessagingService'
When I try ...
0
votes
0
answers
31
views
Firebase CLI fails with "An unexpected error has occurred" only when deploying storage
I'm trying to deploy Cloud Storage CORS settings using the Firebase CLI, but it consistently fails with a generic "Error: An unexpected error has occurred."
Project ID:
oa-maintenance-v2
...
1
vote
0
answers
78
views
Flutter Firebase Auth crash on Windows with warning “message from native to Flutter on a non-platform thread”
I’m getting a crash and can’t seem to find any clear solution online. My Flutter app uses Firebase Auth (along with Firebase Core and Storage), and everything works fine on some Windows devices, but ...
0
votes
0
answers
89
views
Flutter app stuck on launcher screen on some Android devices (Impeller / Firebase / AppLinks suspected)
I’m experiencing an issue where my Flutter app works fine on most devices, but on some Android devices and emulators, it gets stuck on the icon/logo screen during the first launch.
Details from my ...
1
vote
1
answer
106
views
GoRouter doesn’t redirect - after logout stays on protected page
Problem: I’m using GoRouter with a GoRouterRefreshStream that listens to my AuthCubit.stream (Cubit emits states like Authenticated, UnAuthenticated, etc.).
Everything works fine when logging in or ...
2
votes
1
answer
142
views
How to query Firebase Realtime Database for top N users and current user’s rank
How to index Firebase Realtime Database for leaderboard and get current user’s rank?
I’m using Firebase Realtime Database to store user data for a game. I want to implement a leaderboard based on the ...
0
votes
2
answers
182
views
Why does a decoded Date from Firebase have a small milliseconds offset in Swift?
I’m fetching a Date stored in Firebase (Firestore or Storage metadata) and decoding it in Swift, but I noticed the resulting value isn’t exactly what I expect.
// The date is created for midnight (00:...