143,628 questions
1
vote
0
answers
20
views
When using Onesignal with a Firebase website: [Service Worker Installation] Installing service worker failed SecurityError: The operation is insecure
I get the error when the push notification service worker attempts to load on my firebase app after enabling notifications. The full error is:
[Service Worker Installation] Installing service worker ...
0
votes
0
answers
39
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 ...
-1
votes
0
answers
30
views
Firebase Cloud Function returning inconsistent data from Airtable - wrong data/missing reccords [closed]
Context:
I'm building a dealer portal where car dealerships login and view their fleet vehicles. Each dealership has a unique identifier called an RRDI (like a dealer code), and the Airtable database ...
0
votes
0
answers
29
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 ...
0
votes
0
answers
40
views
How to initialize Firebase/Firestore in Vercel project? [closed]
Here is the code I currently have.
I get this error in the console when the page opens:
Uncaught TypeError: The specifier “firebase/app” was a bare specifier, but was not remapped to anything. ...
1
vote
0
answers
59
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
36
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
0
answers
33
views
Unable to login to firebase - unable to fetch CLI MOTD and remote config [closed]
I keep getting this same error when trying to login to firebase CLI, using Terminal on MacOS catalina -
firebase login
i The Firebase CLI’s MCP server feature can optionally make use of Gemini in ...
0
votes
0
answers
81
views
Firebase Error: "API key not valid. Please check your configuration" [closed]
I’m building my mobile app using React Native with Expo and Firebase.
When I initialize Firebase I get this error:
FirebaseError: Firebase: Error (auth/invalid-api-key).
My config file looks like ...
0
votes
2
answers
89
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, ...
-1
votes
0
answers
47
views
Why do I get a weird output from 'result.getText()' when using 'GoogleSearch Grounding Tool' in "firebase-ai" android sdk [closed]
here is the weird result:
<ctrl42> call:google_search.search{queries: [
]
} <ctrl43> <ctrl44>
This happens whenever I set a configBuilder.setResponseSchema(schema)
I've to ...
0
votes
0
answers
62
views
Firebase and IndexedDB caching strategies [closed]
I have been working on my React + Firebase app for the past year and I've come to the realization that I will need a caching layer to avoid unnecessary Firestore costs.
My idea for the flow is as ...
0
votes
2
answers
115
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
84
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))...
-1
votes
1
answer
61
views
How can I change the output folder of the generated SDK in Firebase DataConnect? [closed]
I'm following this codelab. The data-connect folder is generated at app\src\lib\dataconnect-sdk . Is there a way to make the generated sdk be outputted in another folder of my choice? Like C:\...
0
votes
0
answers
72
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
74
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
26
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
...
-2
votes
0
answers
94
views
Very Slow App Performance - Waiting for a blocking GC Alloc - Flutter - Android Only [closed]
My production application has suddenly become very slow. I am using Firebase streams to load various lists from Firestore, but the issue occurs only on Android. I tried replacing the streams with ...
0
votes
0
answers
40
views
Can I send any event, analytics data to Firebase projects, android app, with JavaScript for tracking purposes [duplicate]
I have created a Firebase project and connected it with Google Analytics. Project consists of two apps, one is an Android App(android app data stream) other one is WebApp(web data stream).
The web app ...
1
vote
0
answers
56
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
74
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
88
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
120
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
168
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:...
0
votes
0
answers
28
views
Firebase Connectivity in ESP8266 NodeMCU
I am working on an ESP8266-based IoT project (waste segregation system) and trying to send data to Firebase Realtime Database. I am using the latest Firebase ESP8266 Client library (FirebaseESP8266.h) ...
0
votes
1
answer
53
views
Why does Android app crash after installing the latest version with Firebase App Distribution?
I am new to Android development and I'm using the Firebase App Distribution tool. It successfully prompts the user when there is a new version available to download, and in the notification drawer it ...
0
votes
1
answer
72
views
Null values of username are showing in my firebase console and flutter app
when i save in firebase, the data like username, phone number, and status are lost, leaving only the uid persistent.
I'm using cubit for state management.
The code for creating user:
Future<void>...
0
votes
0
answers
87
views
Firebase Genkit using prompt in chat
I am using chat with genKit library like below:
const session = agenticAi.createSession<any>({
initialState: {
uid: uid,
},
});
const chat = session.chat({
model: googleAI.model('...
0
votes
1
answer
84
views
Firebase: Fetching documents from a database that is not default, but is still in the same project
I've been trying to fetch documents from a different database I made on my project. I have my primary database which is called 'Default' and I have another database in the same project called 'Staging'...
0
votes
1
answer
49
views
Is there a remote, administrative way to force mobile Firebase Email Sign In links to use a custom domain?
My React Native app (Android and iOS) uses Firebase Email Sign In links for authentication.
The app is configured to handle links that begin with a Custom Domain, which is registered and hosted by ...
1
vote
0
answers
99
views
FIS_AUTH_ERROR when retrieving FCM token from FirebaseMessaging
I have an app which receives pushes to device. Some devices receive pushes well. Some has a problem with getting FirebaseMessaging token. In both situations Firebase initialization goes well. I tried ...
0
votes
0
answers
36
views
Flutter Web App Shows Blank Page After Firebase Hosting Deployment
I built a Flutter web app using a --dart-define variable like this:
flutter build web --dart-define=MY_API_URL=https://api.example.com
When I serve it locally using:
firebase serve --only hosting
...
0
votes
1
answer
32
views
Firebase Cloud Function returns "not-found" error when called from React Native app despite successful deployment
I'm trying to call a Firebase Cloud Function from my React Native Expo app to send invoice emails. The function deploys successfully, but when I call it from the app, I get a FirebaseError: not-found ...
0
votes
1
answer
93
views
Firestore not working on ADK agent deployed to Agent Engine
My ADK agent works fine locally when running on adk web, but the instance running on Agent Engine always fails to read and write data from firestore. I get an error saying 403 Missing or insufficient ...
0
votes
0
answers
45
views
Ghost pushing in flutter app with push notifications
I created a flutter app with push notifications enabled, and I'm using firebase FCM HTTP v1 API to send push notifications to my device. Here's my FCM API POST payload.
{
"message": {
&...
0
votes
1
answer
61
views
Flutter: `The method 'DataPart' isn't defined` when using firebase_ai for Gemini Vision
I'm trying to send an image and text to Gemini using the firebase_ai package in Flutter, but I'm getting a persistent error: The method 'DataPart' isn't defined for the type 'AiAssistantService'.
The ...
1
vote
0
answers
52
views
Firebase Auth blocking function (Gen-2 / Cloud Run) returns 403 “not authenticated” from Identity Platform, despite Run Invoker granted
I am using Firebase Authentication blocking functions (Gen-2) with Cloud Run services for:
• beforeUserCreated
• beforeUserSignedIn
Problem
When Cloud Run security is set to Require authentication ...
1
vote
1
answer
46
views
Firebase onCall function returning null even though await is there
I was able to successfully send this email with a onRequest call, but I would like to convert these on onCall Firebase calls. Here in my function below.
For the sake of privacy, I removed the company ...
0
votes
0
answers
69
views
My App Flutter app isn't producing the required products in the widget, i'm using cubit for state management
Stream<List<PhysicalProductEntity>> getAllProducts() {
final productsCollection = firestore
.collection('items')
.where('type', isEqualTo: 'product');
...
1
vote
2
answers
484
views
Flutter Firebase error in release mode: PlatformException channel-error, Unable to establish connection on channel
I'm working on a Flutter app using firebase_core, and everything runs fine in debug mode, but in release mode, I keep getting the following error on startup in android:
> PlatformException(channel-...
1
vote
0
answers
169
views
Why does Firebase App Check think that my app is not registered?
I've been working on a Flutter project for iOS, and I'm confused on why Firebase App Check isn't working. Last release, it worked fine, but this release, it fails...so this leads me to believe that it'...
0
votes
0
answers
89
views
Flutter 3.35 Android Release Build Crash – java.lang.NullPointerException: Attempt to invoke virtual method 'void Z2.j.D(...)' on a null object ref
I recently upgraded my Flutter SDK from 3.32.7 → 3.35.0.
Since then, my app works fine in debug mode, but crashes on launch in release mode with the following stacktrace:
FATAL EXCEPTION: main
E/...
1
vote
1
answer
61
views
Why would a firebase HTTP function deploy as a Cloud Run url?
I have a new project that I am just starting to build some Express endpoints for. It deployed with a URL in the format of https://app-[random string].run.app/ instead of the expected format of https:/...
0
votes
0
answers
84
views
Could not parse the Android Application Module's Gradle config after changing compileSdk and buildToolsVersion
I am encountering the following error in Android Studio: Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync.
I have tried several things to fix ...
1
vote
1
answer
89
views
Flutter mobile app, debugToken not showing in logs, even with AndroidProvider.debug
I have a flutter app, that was working perfectly in development mode, but not in production. I fixed it so that now it uses playIntegrity and works in production, but now it's failing to run in debug ...
0
votes
0
answers
32
views
Error while distribute app to firebase using Azure pipeline
After iOS build pipeline in Azure pipelines, I am running 'Distribute app to firebase' task but it fails with below error
Attempting to distribute IPA: /Users/runner/work/1/a/FinalIPA/**.ipa
App ID: *...
0
votes
0
answers
212
views
Firebase Push Notification Not Working, APNs token is null on iOS
Flutter Environment
Flutter Version: 3.29.3 (stable)
Dart Version: 3.7.2
Xcode Version: 26.0.1
CocoaPods Version: 1.16.2
Firebase Packages
firebase_core: ^4.1.1
firebase_messaging: ^16.0.2
Device /...
1
vote
1
answer
78
views
Getting error while distribute app to firebase using Azure pipeline
After iOS build pipeline in Azure pipeline, I am running 'Distribute app to firebase' task but it fails with below error
##[error]IPA file not found at /Users/runner/work/1/a/FinalIPA/ggg.ipa. ...
0
votes
1
answer
54
views
How to see events and reports in GA4 only from the one app source
My Firebase project contains multiple apps, each one is different, and each one has GA4/Google Analytics added. But I would like to see events and reports in the Analytica console for each app ...