143,585 questions
2
votes
0
answers
71
views
Firebase Phone Authentication returns 503 Service Unavailable for Iraqi phone numbers [closed]
I'm using Firebase Phone Authentication in my web application. The authentication works perfectly with test numbers and other countries' phone numbers (tested with Egyptian numbers), but consistently ...
6
votes
1
answer
236
views
Why can anyone call my Firebase callable Cloud Function via its HTTPS URL, outside my mobile app?
I have a Firebase project with a mobile app (Flutter) that uses callable Cloud Functions. From the app, I invoke them with the Firebase SDK like this:
const functions = firebase.functions();
const ...
0
votes
0
answers
120
views
401 Unauthenticated Error while calling cloud functions in Google Firebase
When I am trying to call a firebase cloud function from my react.js frontend using the onCall method, I am getting a 401 Error getting reply- User not authenticated error. I know this question has ...
1
vote
1
answer
90
views
DataGrip: Create Trigger within IDE
System: Firebase5.0 - Docker
Problem: I am trying to create a trigger, for assigning the ID in Firebase 5; my problem here is that I can not change the TERM for DataGrip.
Code:
CREATE TRIGGER ...
0
votes
0
answers
81
views
Initialize Firebase App using RNFirebase Expo
I am trying to initialize my firebase app using the new modular framework from rnfirebase.io but I am receiving the error below;
Here is my attempt:
import { getApps, initializeApp } from "@react-...
2
votes
0
answers
55
views
How to read all files in a folder using Flutterfire?
I've been trying to simply read out all the files of a folder, so I can detect new files uploaded by users and parse them. However, I cannot get any output from a listResult, always just []
The thing ...
0
votes
1
answer
74
views
Firebase AppCheck Replay protection on custom BE without Admin SDK
Is there a way to enable replay protection on a BE that does not use one of the languages supported by the admin SDK ? I would like to consume a token after verification and not only checking its ...
0
votes
0
answers
42
views
Behavior Of Using GlobalOptions Method & Cloud Function Individual Configuration
General Question
If I use both setGlobalOptions() from Firebase Cloud Functions v2 with the CF individual configuration, to inject secrets on runtime. Will the setGlobalOptions() overwrite the ...
0
votes
1
answer
105
views
Android Studio BlackPixels on Virtual Device/Emulator
I had to reset my Laptop (Windows 11) and reinstalled Android Studio (now the newest version Narwhal - after getting the below mentioned issues, I downgraded to Koala). I also installed the latest ...
1
vote
0
answers
66
views
Firebase Realtime Database onValue listener triggers repeatedly on iOS without data changes in Flutter
I'm using Firebase Realtime Database in a Flutter app and listening for updates using the onValue stream. Here's the code I’m using:
_plansSubscription = _plansRef
.orderByChild('userId')
....
0
votes
0
answers
83
views
How to load firebase service worker with different configurations (test/prod)
Depending on the environment, I have two different configurations I would like to use (test and prod). Unfortunately, firebase only works with the one service worker in the domain root folder (/...
0
votes
1
answer
78
views
Unity build failed; CommandInvokationFailure: Gradle build failed
Unity: 2023.2.18f1
Selected Platform: Android
Firebase SDK: 12.10.1
External Dependency Manager for Unity: 1.2.186
Facing CommandInvokationFailure: Gradle build failed. issue. I have tried all the ...
0
votes
0
answers
53
views
Flutter FCM IOS notification sound doesn't play on terminate app state
after reading thousands documentation and conversations with AI agent I found myself in here like old days.
I'am trying to get notification using FCM in IOS.
First of all; I had done all platform ...
2
votes
1
answer
166
views
Firebase Auth currentUser null on cold start due to KeysetManager failed to initialize on Redmi Note 13 HyperOS
I'm developing an Android app using Firebase Authentication (email/password) with Jetpack Compose and Kotlin. The app stores user data locally in DataStore and sets a loggedIn flag to true after ...
0
votes
0
answers
104
views
Expo React Native Firebase App iOS crashes when opening navigating to auth screens
I'm working on an Expo RN app with React-Native-Firebase. In the past, I've had no issues with building and releasing the app. However, it seems recently every release build I've put out (either on ...
0
votes
1
answer
92
views
Does Firebase Firestore charge for loading cached documents?
When I subscribe to a collection that results in 100 documents, a couple of days later, I start my app again. I am offline. I see all 100 documents because Firestore cached them for me. Then I go ...
3
votes
1
answer
247
views
Unity + Firebase BOM 34.0.0: NoClassDefFoundError for com.google.firebase.ktx.Firebase despite not using KTX APIs
I'm building a Unity 2022.3.47 Android app that uses Firebase Remote Config via native Kotlin code. I recently updated to Firebase BOM 34.0.0, which removes all ktx libraries per Firebase's Kotlin-...
0
votes
0
answers
101
views
Flutter iOS: "Multiple commands produce .app" error on Xcode 16.4. Even legacy build system fails
I keep getting these "Multiple commands produce" errors when building my Flutter iOS app. This started after updating to macOS 15.6 and Xcode 16.4.
Error:
Error (Xcode): Multiple commands ...
0
votes
1
answer
62
views
Firebase Cloud Function fails with "TypeError: func is not a function" on deployment
I'm building a football match prediction system using JavaScript and Firebase. Users can make predictions on match results, and for users who don’t submit a guess, I want to automatically assign a ...
1
vote
1
answer
57
views
Flutter Firebase notification does not trigger onMessageOpenedApp
I'm implementing code for notification navigation after user press on notification. Below is my code.
FirebaseMessaging.instance
.getInitialMessage()
.then((RemoteMessage? message) {
...
1
vote
1
answer
286
views
Flutter Android error: was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0
I’m working on a Flutter app and trying to run it on Android using:
Kotlin version: 2.2.0
Gradle version: 8.14.3
JVM target: 17
But I keep getting this error during the build:
e: .../jetified-play-...
0
votes
1
answer
74
views
How to control order in which functions are displayed in firebase console? [closed]
In the Firebase Console, when showing the list of functions, what determines the order in which the functions are displayed?
I am in the very early stages of a project and already have 16 functions, ...
0
votes
0
answers
114
views
How to securely implement rate limiting for authenticated users in Firebase Firestore? [duplicate]
Problem Context
I'm building a Firebase iOS app application where authenticated users can access their own documents. Each user has a dedicated document in Firestore with security rules like:
match /...
0
votes
1
answer
140
views
How to choose the correct Firebase JS SDK version for firebase-messaging-sw.js in a Flutter Web app?
I have a Flutter/Firebase web app where I am trying to add firebase cloud messaging (notifications).
Part of this setup is to create a service worker file "firebase-messaging-sw.js", with ...
0
votes
0
answers
96
views
.NET MAUI iOS Build Fails with Firebase v3.x due to Missing Swift Symbols After Updating to Fix ITMS-91061 (Privacy Manifest)
I'm developing a .NET MAUI application targeting .NET 8. In my project, I’m using the following Firebase packages:
<PackageReference Include="Plugin.Firebase" Version="2.0.6" /&...
0
votes
0
answers
47
views
Firebase storage image urls keep returning access denied response
I have a small app where I am using firebase functions to upload an image into firebase storage.
Once done, I store this image url against an object in firebase db and then reuse this image in the app ...
3
votes
1
answer
80
views
Receiving TOKEN_EXPIRED error using Firebase with Expo on getAuth
In my app, I use expo in order to have both my native app and website in the same codebase.
I login using google auth via the signInWithPopup method from firebase/auth.
I leave my computer for about a ...
0
votes
0
answers
51
views
Firebase notification ignores some colors set from AndroidManifest
In AndriodManifest.xml I have the following:
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/...
0
votes
1
answer
79
views
Firebase Functions v2 onCall() returns 401 Unauthorized—even though request.auth is valid and proper IAM role assigned
I’m facing a puzzling issue with a Firebase callable function (onCall) deployed via Cloud Functions v2 (on Cloud Run, Node.js 18/20). Even though:
the client is signed in (getAuth().currentUser is ...
0
votes
1
answer
120
views
I am unable to test my app in closed testing because of App Check from Firebase
As in the title, I am unable to test my application that was published to closed testing in Google Play because of Firebase App Check.
Firstly, I published my app to internal testing channel, but the ...
0
votes
0
answers
47
views
Firebase/auth mock with JEST is not recognised
Im trying to test an error state which get updated when no foundEnterprise match is found:
async function onSubmit (data) {
try {
const enterprisesData = await fetchData()
const ...
0
votes
1
answer
126
views
Flutter(Kotlin DSL)+Firebase [duplicate]
Since few days I'm facing following error in Flutter Firebase.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':firebase_core:...
0
votes
1
answer
130
views
Flutter: inlineData content part not yet supported
I have been trying to implement Gemini image generation in Flutter, and I have use the sample code from their official documentation: https://firebase.google.com/docs/ai-logic/generate-images-gemini?...
0
votes
0
answers
76
views
Django google-auth-oauthlib insecure_transport error on Cloud Workstations despite HTTPS and SECURE_PROXY_SSL_HEADER
I'm developing a Django application on Firebase Studio environment. I'm trying to implement Google OAuth 2.0 for my users (doctors) to connect their Google Calendar accounts using the google-auth-...
1
vote
1
answer
87
views
Is It Safe to Use stream() Inside a Firestore Transaction in Python?
While conducting a code review today, multiple AIs advised against using the stream() function within a Firestore transaction in Python.
However, I couldn't find any mention of this limitation in the ...
1
vote
1
answer
93
views
Firebase Firestore .add() returns 400 bad request after successful form submission (Flutter Web)
I built a multi-tab Flutter Web registration form (Clients and Workers) that submits data to Firebase Firestore using the .add() method.
It was working fine for a few days, but now I'm getting this ...
0
votes
1
answer
87
views
BroadcastReceiver for PACKAGE_ADDED and PACKAGE_REMOVED not working on Android 15 and OEM devices (Redmi, Oppo, etc.)
<receiver
android:name=".service.PackageMonitorReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action ...
0
votes
0
answers
40
views
Twilio Voice SDK iOS – Error 52003: Invalid Credential Type(Notify) when setting up APNs for incoming calls
I’m working on a React Native app using Twilio Voice SDK for iOS with the following setup:
Outgoing Calls (App ➝ Real Phone) – Implemented and working fine.
Incoming Calls (Real Phone ➝ App) – Not ...
1
vote
1
answer
198
views
Build failed: "GoogleService-Info.plist" is missing, make sure that the file exists
I'm getting this error while trying to run my Expo EAS Cloud build for my React Native app with Expo:
Build failed: "GoogleService-Info.plist" is missing, make sure that the file exists.
...
1
vote
1
answer
202
views
Firebase not initialized although code for initializing is called
I have an Android Java app with Firebase RealtimeDatabase and I want to initialize Firebase such that later I can delete old entries. In the onCreate method I use the following code
FirebaseApp....
1
vote
1
answer
77
views
How to delete Firestore document when a user closes the web page [closed]
I have a web application utilising React and Firestore where users can create "rooms" which, when active, allow users to interact with the host. There is an option to both activate and ...
0
votes
0
answers
69
views
Firebase cloud message gettoken not work on Edge newest version
I using firebase cloud message.
It just work perfect on Chrome but not work on Edge with same code.
Here is the code:
import {
initializeApp
} from 'https://www.gstatic.com/firebasejs/11.10.0/...
1
vote
1
answer
32
views
Deploy/update file without functions in it - Firebase Functions
I am trying to update a file named blues.cts because a function named fetchAllPacks uses it to update the client. I was wondering if, without updating the functions, I could update the JSON data in ...
1
vote
0
answers
132
views
Does Firebase Authentication support IdP-initiated login with SAML or OIDC?
I'm integrating SSO into a Firebase project using external Identity Providers (IdPs) like Okta. I've successfully implemented Service Provider (SP)-initiated login flows using both SAML and OIDC, ...
0
votes
0
answers
60
views
Issues automating user access via Entra ID IdP to Firebase
I have been tasked to tie our Entra ID to GCP and Firebase so that users added to mail enabled security group get access to firebase.
I found two articles to follow
From Google:
https://cloud.google....
0
votes
1
answer
195
views
Firebase App Hosting next.js auto-deploy fails but deploys from CLI
I have a Next.js app running on Firebase App Hosting and it was previously working fine.
I recently moved the Next.js app itself from the repo root directory to a subdirectory named "next", ...
0
votes
1
answer
247
views
React native IOS Build Fails for Firebase Pods With Syntax Errors in GitHub Actions (Xcode 15.2, iOS 13, React Native)
I'm trying to build a React Native project with iOS support using GitHub Actions. The job is failing during the build of the FirebaseSharedSwift pod with the following errors:
/Users/runner/work/...
0
votes
1
answer
304
views
How to fix the error: ERROR Warning: [runtime not ready]: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null [closed]
When I import firebase version 8.10.0 like this:
import firebase from 'firebase';
import 'firebase/firestore';
I always get an error saying this:
ERROR [runtime not ready]: Invariant Violation: ...
0
votes
0
answers
37
views
Firebase shows many “active users” from (other) with zero events – what’s causing this?
I'm using Firebase Analytics for an iOS app, and recently I noticed something very strange in the analytics dashboard.
Starting from [insert date], there is a sudden spike in active users listed under ...
0
votes
0
answers
55
views
Unable to load environment variables after upgrading firebase-tools, firebase-admin, and firebase-functions
I recently upgraded to the latest versions of firebase-tools -> 14.10.1, firebase-admin -> 13.4.0, and firebase-functions -> 6.3.2. After the upgrade, I am no longer able to deploy the ...