143,586 questions
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 ...
0
votes
0
answers
48
views
Service worker 'notificationclick' event not firing on notification click (Firebase FCM)
I am trying to implement push notifications for web.I have succesfully managed to display background notification. But on clicking it, the notification does not open the window or link I want.Rather, ...
0
votes
1
answer
62
views
Google Sign In Fails with Firebase - signInWithRedirect fails, but signInWithPopup works fine
Firebase authentication (email_pwd and google-auth) is linked to this web app (NextJS)
I want to switch from browser popups for Google Sign-In to a redirect. That's when this issue was encountered.
To ...
1
vote
1
answer
60
views
firebase function fails to send push notification with socket disconnect
i am trying to send push notification like below:
const { getFirestore } = require('firebase-admin/firestore');
const { initializeApp } = require('firebase-admin/app');
const { https } = require('...
0
votes
0
answers
111
views
Firebase Phone Auth + App Check: OTP not received consistently (Error Code 39, Quota Exceeded)
When using Firebase Phone Authentication with App Check enforced (Play Integrity for Android, App Attest for iOS), OTP SMS codes are delivered inconsistently. Some phone numbers/devices receive OTPs, ...
0
votes
3
answers
83
views
Nested Firestore Security Rule For Write Access Not Working
These are all the rules I'm currently using:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if request.auth != null; ...
0
votes
1
answer
92
views
updating targetSdk 35 and problem firebaseUi auth number phone edge to edge
My Application use
implementation 'com.google.firebase:firebase-auth:23.2.1'
implementation 'com.firebaseui:firebase-ui-auth:9.0.0'
I have a button sign in with phone number to connect with firebase ...
0
votes
1
answer
53
views
Firebase SignInWithRedirect with Apple login fails on a nuxtjs / js app
I believe a Nuxt.js (Vue.js) web app with Firebase is correctly set up, as I'm able to log in with Firebase/Apple using signInWithPopup.
I have properly set my custom domain in the Auth domain ...
-1
votes
2
answers
48
views
Finding the number of fields in a document in Firestore [duplicate]
When working with 'firebase/firestore' in a React app. I have a document identified as:
const docRef = doc(fireStoreDB,'CollectionOne','DocumentTwo');
How can I find the current number of fields in ...
1
vote
2
answers
74
views
Writing data to a child node in Firestore
When working with 'firebase/firestore' in a React app. I can successfully use code like the one below:
import {collection,addDoc,...} from 'firebase/firestore'
const collectionName = 'France',
...
1
vote
1
answer
76
views
Google Cloud Function gets 401 Error from Play Developer API despite Admin permissions
I have a Google Cloud Function (v2) written in Node.js/TypeScript that is triggered by a Pub/Sub topic for Google Play Store notifications. The function's goal is to verify a purchaseToken with the ...
0
votes
1
answer
48
views
I can't get query.Count() to work in unity for firestore version 12.10.2
public async Task<int> GetUserRankAsync(int userMaxWave)
{
var higherQuery = FirebaseFirestore.DefaultInstance
.Collection("Leaderboard")
...
0
votes
0
answers
62
views
React App / Google Firebase Auth not working on live domain
I'm having an issue getting my React web app to authenticate users on the live site via Google Firebase Auth redirect sign-in method.
I've followed the documentation for redirect best practices, and ...
0
votes
0
answers
149
views
Firebase App Check (Play Integrity API) fails on certified, non-rooted Pixel devices — App attestation failed (403)
We have integrated Firebase App Check on Android using the Play Integrity API provider. Initially, App Check was disabled due to issues with some users, particularly those on GrapheneOS, who were ...
0
votes
3
answers
289
views
Push notifications not showing on device in standalone Expo build (APK), but work in Expo Go
I’m building a React Native app using Expo with push notifications.
Everything works as expected when testing through Expo Go: I send a push notification via the Expo push API, and it gets delivered ...
0
votes
1
answer
70
views
Invertase Stripe Payment Extension Issue: Metered Pricing
I am trying to get the invertase extension to work with metered pricing but I keep getting the error: {message: 'Quantity should not be specified where usage_type is metered. Remove quantity from ...
1
vote
2
answers
65
views
Cannot get a specific ErrorCode from Firebase.Auth
I have written a user authorization method and want to catch a specific error code to show to the user. Here is a snippet of the method:
await _auth.SignInWithEmailAndPasswordAsync(email, password)....
0
votes
0
answers
54
views
Flutter passes data to Cloud Functions, but it still returns Data: undefined
I am trying to add a function to my mobile application to send e-mails with registration code to the users of the app and it's always failing with the same error, E-mail=undefined. I will show also ...
1
vote
1
answer
196
views
How do I fix the Ionic Angular Standalone Firebase API called outside injection context error?
While migrating my Ionic Firebase project from NgModules to standalone, I get errors - I'm using Ionic Capacitor 7, Angular 20.
ERROR: Firebase API called outside injection context: user
Has anyone ...
1
vote
0
answers
76
views
Unexpected CFBundleExecutable Key in firebase_messaging_Privacy.bundle (Flutter 3.32, iOS)
I'm using Flutter with the firebase_messaging plugin (version 15.2.9). When I try to submit my .ipa file to App Store Connect, I get the following validation error:
Unexpected CFBundleExecutable Key.
...
1
vote
1
answer
38
views
Firebstore rules - Check SubCollection exist
I have a collection of musics. They can contain a subcollection of notes.
I would like to prevent deletion if any notes exists
I tried
match /databases/{database}/documents {
match /musics/{musicId} {...
0
votes
0
answers
49
views
Firebase Phone Auth: CODE_SENT resolves before AUTO_VERIFIED, how to ensure only verified resolves when auto verification happens?[ANDROID]
I'm using Firebase Phone Authentication in a React Native app. The issue I'm facing is that when auto-verification happens, the CODE_SENT case still executes first, and AUTO_VERIFIED is triggered ...
0
votes
0
answers
36
views
Firebase token expires on page refresh for newly registered users (very first login)
This is a nextjs + firebase application that should have google and microsoft authentication.
TLDR: The microsoft auth flow for new user the very first time they log all works as expected (I'm getting ...
1
vote
0
answers
153
views
Permission 'cloudmessaging.messages.create' denied on resource '//cloudresourcemanager.googleapis.com/projects/'
When I run the following simple push notification sending code.
import firebase_admin
from firebase_admin import credentials, messaging
cred = credentials.Certificate("/xxx/demo.json")
...
0
votes
0
answers
76
views
Firebase auth/argument-error with RecaptchaVerifier in Next.js/React
I'm struggling with a persistent Firebase error when trying to implement phone number authentication in a Next.js 14 (App Router) application. I keep getting FirebaseError: Firebase: Error (auth/...
1
vote
0
answers
43
views
Flutter / Firebase Phone Auth: Safari can't open the page to verify on iOS simulator
It worked the first couple of times I tried but now I just get this Safari cannot connect error. I wonder what I am doing wrong.
This page appears after I enter a phone number into my text field and ...
0
votes
1
answer
133
views
firebase, via cordova-plugin-firebasex plugin, firing before deviceReady is triggered
My app was on Cordova@11 and [email protected] with [email protected] and all was working fine. My prod/app store version is running these versions.
I then upgraded my dev ...
-1
votes
1
answer
55
views
How to secure firebase realtime database rules? [closed]
I have a simple program to show real-time postview counts. But in Firebase, it says
Your security rules are defined as public, so anyone can steal, modify, or delete data in your database
Every ...
-2
votes
1
answer
72
views
Cloud Functions for Firebase Deployment issue
I'm trying to create some Firebase Cloud Functions but every time a I try to deploy with firebase deploy --only functions the build is failing with no logs in Cloud Build:
I'm using the template ...
0
votes
0
answers
105
views
FirebaseAuth Error code 17004 is being thrown when Error code 17011 should appear (XCode)
I'm currently working on the entire authentication section of an IOS app using the most recent version of XCode and just added Google sign-in capabilities.
I first created an account using email/...
3
votes
1
answer
175
views
Firebase Callable Function context.auth is undefined despite correct setup (UNAUTHENTICATED Code 16)
I'm have an authentication issue with a Firebase Callable Function.
My Setup:
Client: iOS (SwiftUI) using firebase-ios-sdk v11.15.0.
Backend: Node.js v20 (2nd Gen) https.onCall Firebase Cloud ...
0
votes
1
answer
72
views
Invalid JWT Signature In Firebase Java SDK ( Spring Boot )
Error getting access token for service account: 400 Bad Request
{"error":"invalid_grant","error_description":"Invalid JWT Signature."}
I am getting this error ...
0
votes
1
answer
51
views
Does copying fcmToken from one document to another document causes an error of SenderId Mismatch?
I have been working on an application whose frontend is in react-native (using expo) and backend is in express js. Now during the testing the frontend guy generates the FCM token and then send me to ...
0
votes
0
answers
50
views
How to get eventFilters to trigger on a Firestore onUpdate in Firebase Functions v2 when nested value is null or undefined
I’m trying to trigger a Firebase Cloud Function (v2) only when a specific nested field is added to a Firestore document. That means that the value for that specific field should be undefined in the ...
0
votes
1
answer
67
views
Firebase analytics events not showing in BigQuery
I have a website that uses Google Analytics for Firebase (web SDK). When using the GA Debugger Chrome extension I'm seeing events arrive in the Firebase Console Debug View, so everything is connected ...
0
votes
1
answer
109
views
Firebase Studio does not work with Google Apps Script while previously idx use to work
Project IDX used to be standalone but it is nowadays part of Firebase Studio. Previously, I was able to use IDX with Google Apps Script following these steps:
Create a blank workspace on IDX.
...
2
votes
0
answers
100
views
Flutter Firebase Phone Auth reCAPTCHA loops twice on iOS with App Check enabled
I'm working on a Flutter app with Firebase Authentication and App Check enabled.
On iOS, when using FirebaseAuth.instance.verifyPhoneNumber(), sometimes the reCAPTCHA appears twice:
await ...
0
votes
0
answers
98
views
Unity iOS Build Fails After Adding GoogleSignIn – Undefined Symbols for GoogleSignIn Methods
I'm encountering an issue when building my Unity app for iOS after integrating GoogleSignIn.
Previously, my app built successfully with only Firebase Firestore integration. However, after adding ...
0
votes
0
answers
87
views
Firebase Auth deletes the displayName property after first sign in with SAML provider
I use Firebase Authentication with an SAML provider linked to an Azure SSO in a Next.js web app.
Problem : After a user first signs in, the displayName property in Firebase Authentication is set to ...
1
vote
0
answers
88
views
How to prevent Firebase Auth from injecting remote scripts in a Manifest V3 Chrome Extension?
Summary:
I am building a Chrome Extension (Manifest V3) that uses Firebase Auth, but my extension is rejected due to this violation:
Violation reference ID: Blue Argon
Technical Requirements - ...
0
votes
0
answers
38
views
Firebase Cloud Function 403 Forbidden Despite Admin Claim Set in Authentication
I'm building a Firebase/React library app where admins add student users via a Cloud Function (createStudentUser) requiring an admin claim. I set admin: true for my user (UID: ...
1
vote
0
answers
3k
views
module map file 'xxxxxx FirebaseCoreInternal.modulemap' not found
I have created 4 build configurations:
Debug: default one which runs in staging env with bundle ID: xxx.xxxx.st
Release-Staging: used for archive of staging app with bundle ID: xxx.xxxx.st
Release: ...
0
votes
0
answers
59
views
Next.js App Router API Route (Stripe Webhook) Returns 302 Instead of 200 on Google Cloud Workstations
Goal:*
I'm trying to implement a Stripe webhook endpoint in my Next.js (App Router) application to handle the checkout.session.completed event. The endpoint should process the event and return a 200 ...
0
votes
1
answer
96
views
Google Sign-In in Ionic React with Firebase not working in production (BAD_AUTHENTICATION, OAuth2: OpenID error)
I’m working on a mobile app built with Ionic React and I’m trying to implement Google login using Firebase. I am using the @capacitor-firebase/authentication package for Firebase Auth in an Ionic ...
8
votes
0
answers
839
views
Sign In with Apple - Sign-Up not completed [closed]
We are currently facing an issue with implementing "Sign in with Apple" in our iOS application built using Flutter. We've implemented "Sign in with Apple" using Firebase and On ...
0
votes
0
answers
38
views
PlatformException(sign_in_failed, com.google.android.gms.api.b: 10: , null, null) [duplicate]
I am facing a problem with Google signin using firebase to authenticate user.
It works in debug and release mode but when deployed to playstore, it shows error of PlatformException.
Tried adding sha1 ...
0
votes
0
answers
60
views
Preconnect/dns-prefetch Firebase Auth
I'm looking into optimizing Firebase Auth.
The web SDK does cache login state, but (unlike the native iOS and Android versions of the SDK) always performs at least one request to check authentication. ...
0
votes
1
answer
93
views
Firebase deploy --only functions:myFunction in Gen2 Cloud Run - Pulling all my files with other functions
I am in the process of migrating from version 1 of Google Cloud Functions to generation 2 in cloud run. I've update my functions, but when they are deployed using --only functions:myFunction command ...
2
votes
2
answers
2k
views
Cannot find type 'sending' in scope
While following a tutorial I was asked to install a package dependency, Firebase. I was after two components, one being Firestore. After installing it with the package manager and trying to build the ...
1
vote
1
answer
480
views
Flutter cant build ios on Xcode 15.2 - tried downgrading firebasesdk too
I have been struggling with this for a week, but I can't get my head around it. I have a MacBook 2017, so Xcode 15.2 is the most recent I can use.
I tried everything:
reinstalling pods
reconfiguring ...