How are we doing? Please help us improve Google Cloud. Take our short survey

Questions tagged [firebase]

Firebase is a serverless platform for unified development of applications for mobile devices and for the web.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

how to get realtime data with firestore and react native

I'm trying to get an array of all users saved in my firestore, but it pulls only from the moment the app was started and not after creating a new user. ClientsList.js import React from 'react' import {...
0 votes
1 answer
10 views

Firebase Cloud functions - Is there a good way to get the first two documents created in a collection?

I am working on a React-Native app that utilizes cloud functions to monitor users who join a room. When a user clicks on the join room button, they are added to a collection as a document and wait for ...
  • 3
0 votes
0 answers
3 views

Firebase functions project - Error: Failed to load function definition from source: Failed to generate manifest from function source

I am trying to create a whatsapp/openai chat "app" using Twilio and Firebase functions. I am working off this guy's project video When I try to deploy the project to firebase functions I get ...
  • 256
0 votes
0 answers
6 views

SvelteKit & Firebase Auth, Two output files share the same path but have different contents?

I keep getting the error whenever I import import { createUserWithEmailAndPassword } from "firebase/auth"; Two output files share the same path but have different contents: node_modules....
  • 9
0 votes
0 answers
5 views

404 Robots.txt and Favicon in Angular Universal with Firebase Hosting

I am facing issue whenever I verify my robots.txt file using online tool or when visiting mydomain.com/robots.txt Background My project is build in Angular with Firebase Hosting. If I run the ...
0 votes
0 answers
5 views

Expo + Firebase how activate AppCheck

I am building an App with Expo + Firebase sdk and want to implement AppCheck now. How can i implement it into the App? How can I create an AppChestCustomProvider for IOS(DeviceCheck) and Android(Play ...
  • 53
0 votes
1 answer
13 views

Ref.orderBy is not a function w/ firebase and react.js

I am working on a chat message feature but am stumped by this error in my console: messagesRef.orderBy is not a function Here is my current code: firebase.js import firebase from 'firebase/compat/app' ...
0 votes
0 answers
16 views

How to fix error : "Cannot read properties of undefined (reading 'STATE_CHANGED')"?

Im creating a react, next.js and firebase website following a fireship.io tutorial in which he uses firebase storage to store images and he uses this code. However, I'm getting errors. Here is the ...
  • 45
0 votes
0 answers
10 views

I'm facing a problem running the app after installing firebase in my flutter project the problem is the app is no launching

the flutter app is no longer launching to view in my emulator no errors are detected in my code I think the problem is related firebase but I don't actually know here is the code: import 'package:...
  • 1
0 votes
0 answers
10 views

Send oobCode instead of link for password reset

I want to send to user email with oobCode instead of link when they try to reset the password. But there is no variable like %OOB_CODE% because of this I have to send link which forces my users to ...
  • 1,454
0 votes
0 answers
9 views

Using whereNotIn operator in Firebase Firestore in Flutter not working [duplicate]

I am trying to run the below Stream, but this returns all the documents, completely ignoring the whereNotIn operator in Firebase Firestore. FirebaseFirestore.instance .collection('announcements') ....
  • 750
0 votes
0 answers
7 views

Why firebase can't detect ProjectId?

Firebase can't detect project id , but I give serviceAccount info , I didn't find a solution. Maybe here is the mistake in syntax , coz i don't really know firebase-admin pack. The error looks like : ...
  • 25
0 votes
1 answer
19 views

Uncaught (in promise) TypeError: doc2 is not a function at getOrders (ordersList.jsx:27:23)

I want to fetch display_name from user collection to orderList page via UID interpreter and image name from art collection in order table but got this error: https://i.stack.imgur.com/X9bkH.png Here's ...
0 votes
0 answers
11 views

Firebase database current year items query

I'm having an issue when trying to get all of the WorkDays from the current year, but I get every WorkDay item. Is there a different way to do this (without retrieving all of the WorkDays and ...
0 votes
0 answers
7 views

Schedule firestore document deletion on document create or update

So I have an application that allow users to create events with their friends, they can specify the time and duration of the event. What I want to do is that I want to delete the firestore document ...
0 votes
0 answers
12 views

Error In Phone Auth Firebase after add Play Integrity

I added SHA-1 and SHA-256 and it still isn't working. After pressing register, it goes to ReCAPTCHA, but the browser is not loading and this error appears.[[enter image description here](https://i....
0 votes
0 answers
10 views

Firebase Trigger Email Stuck at Processing or Fails with ssl3_get_record: wrong version

I'm trying to set up trigger emails through Firebase. I've read other Stackoverflow posts which led me to 1) enable SMTP authentication within my mailbox settings 2) try changing the port to 587 to ...
  • 55
0 votes
1 answer
18 views

The text input i pass doesn't show on console

So I am building a form in react using formik. I made a TextInput Component that contains an input field with some changes. when I use changeHandler, it is supposed to update the values i enter but it ...
0 votes
0 answers
12 views

Compiling issues with TypeScript/Firebase

I did the new Mobile Firebase course on [Scrimba][1]. Built in JavaScript no problem but now I'm trying to improve my TypeScript so I tried building it that way. I've got 3 compiling errors I can not ...
0 votes
0 answers
20 views

How can I get value from my dictionary located in Firestore? [duplicate]

struct StaffAccount: Identifiable { var id: String var email: String var password: String var status: String } class StaffAccountModel: ObservableObject { @Published var model = [...
0 votes
1 answer
13 views

How to get data from Firebase Realtime Database by id in Kotlin?

I need to get data from the Realtime Database. I have a users node and each user has an ID. How can I get the whole User object from this database?
  • 55
0 votes
0 answers
7 views

Firebase `Content Security Policy` issue

We have the Content-Security-Policy configured, in the firebase.json file. We also have a lot of domains that we need to request. For example, it could be a tracking service or some analytics tool. I ...
  • 243
0 votes
0 answers
25 views

Flutter application neither shows an error nor works

I am writing a flutter application. I am preparing the login part right now. I created firebase authentication and integrated it into my project. I created a user in the firebase authentication an I ...
0 votes
0 answers
14 views

Need help for firebase update button

Need help on why when I click the edit button once it updates the correct row on the table, but when I update another data on another table, both of the datas get updated. Firebase V9.10.0. The ...
  • 81
0 votes
2 answers
24 views

I cannot run firebase emulators on fresh install. Getting ' SyntaxError: Unexpected string: re"use strict"; '

I followed the tutorial to set up Firebase Functions with Typescript at https://firebase.google.com/docs/functions/typescript However, when I run npm run serve or firebase emulators:start, emulators ...
0 votes
0 answers
12 views

How to fix 'Response to preflight request doesn't pass access control check: It does not have HTTP ok status.' in CORS

I am trying to send a GET request to Firebase backend using React and Axios library but I'm getting this error 'Response to preflight request doesn't pass access control check: It does not have HTTP ...
0 votes
0 answers
11 views

query firestore collection by a key of a map inside an array [duplicate]

I have a structure of Firestore in which one of the fields is an array of maps. I want to filter the search by one of the keys of these maps. The structure is as follows: uid: "g9x08Ozdu" ...
  • 288
1 vote
0 answers
12 views

Firebase with development and production server [closed]

I have been using firebase functions for creating a nodejs server. What I'd want to do now is to create a development server with the same code. So, I could first upload to the development server and ...
1 vote
1 answer
29 views

how can I update the values of sub collection and also values of collection in fire base, I attached image below for ref

[ I want to update the values in course collection[course] and also sub collection[sem], I stored the all values of [sem] subcollection in a list. I don't know how to update the values
  • 37
0 votes
0 answers
8 views

How to implement Firebase Custom Data (Key Value Pair) to ensure webview loads URL passed in Value via notification?

I want to send my users notification via Firebase Cloud Messaging so when they click on it the web view loads the URL passed in Value. So far I have explored blogs, videos but nothing was useful.
  • 21
1 vote
0 answers
7 views

ionic app with firebase issue testing in the chrome using low end mobile option

I am trying to test my ionic app with the data option as "low-end mobile". Ideally in this mode app is still connected to the internet. however, I am getting unexpected results with error ...
  • 1,186
2 votes
1 answer
36 views

Is there a way to restart running instances of Firebase Functions (GCloud Functions) without redeploying?

In production, I'd like to be able to allow a Firebase / GCloud administrator to restart Firebase Function (GCloud Function) instances without having to perform a redeployment. Use cases include ...
  • 21.2k
0 votes
0 answers
18 views

React native expo app with Firebase Firestore library versions?

I'm new to react native dev (I'm using expo go) and firebase firestore. I'm getting errors everywhere. I'm trying to enable local persistence. Is there a known set of library versions I should use for ...
  • 682
1 vote
0 answers
14 views

How do I resolve the Firestore/Auth Emulator error [cloud_firestore/permission-denied] false for get at Line 5?

It looks like there is a problem with request.auth when I'm using the Firebase emulators. It seems that it is always null. I am assuming that the get referred to in the error corresponds to the read ...
0 votes
0 answers
32 views

The view doesn't get result from Firebase

struct StaffAccount: Identifiable { var id: String var email: String var password: String var status: String } class StaffAccountModel: ObservableObject { @Published var ...
0 votes
0 answers
8 views

How to resolve multiple projectIDs in Firebase realtime database emulator

I am using firebase emulator database and got the following warning when trying to order messages by "editedAt". 2023-03-24T18:21:33.576Z] @firebase/database: FIREBASE WARNING: Using an ...
  • 1,516
0 votes
1 answer
8 views

Trying to Read and then Log data from firestore

I am trying to query documents from a collections and log them to the terminal. I keep getting the error FirebaseError: Expected first argument to collection() to be a CollectionReference, a ...
1 vote
2 answers
25 views

Can i render formatted text from firebase to vue js?

I’m creating a blog website and i need a way to format my blog-text that is stored in firebase firestore.Is there any way to keep original format of the text?(By that i mean tabs,newlines etc.) I have ...
  • 11
0 votes
1 answer
33 views

Why Firebase works only first time I open the app?

To store and retrieve data about my users in my app I'm using Firebase Realtime Database. To read data I do the following code. I tried to put it in OnCreate or OnStart or in OnRestart, nothing works. ...
0 votes
0 answers
5 views

FIRESTORE (8.10.0) INTERNAL ASSERTION FAILED: Unexpected state" in ionic/capacitor/angular app

I have initialized firebase in my capacitor/ionic app. the problem occurs when my phone (iOS) goes to sleep, and when I woke up him current error is shown. App in background tracks location. @...
1 vote
0 answers
28 views

Calling fetch from Nuxt.js to firebase function resuting in CORS error

I have the following simple code for testing purposes but when I run it I am get the CORS origin error. Is it because I am doing a POST call? I have tried everything but no luck I tested the function ...
2 votes
1 answer
30 views

Error while deploy nextjs in firebase hosting - Invalid value specified for cpu

I am getting error while deploying nextjs 13 in firebase hosting through firebase-tools. error - HTTP Error: 400, Could not create Cloud Run service ssrlyeanabot. spec.template.spec.containers....
1 vote
2 answers
39 views

How to sync custom claim token using Firebase Auth

I want to make Firestore's rule using Firebase custom token like this. match /post/{postId}{ allow create: if request.auth.token[role] == `admin`; allow read: if request.auth.token[role] =...
  • 23
0 votes
0 answers
24 views

Flutter X firebase hosting PROBLEM "this site can't be reached"

I made sure to change "public" to "build/web" and even followed this video step by step : https://www.google.com/search?q=how+to+uplod+flutter+web+to+firebase&oq=how+to+&...
0 votes
0 answers
6 views

Http deeplinks does not open the native app

i am going crazy with this issue. Currently only happens with android 13 deeplinks. I have already added the assetlinks.json to the domain and in firebase whitelisted the domain too just in case but ...
1 vote
1 answer
19 views

Firebase realtime database: using limitToLast returns a list with one null value, and then an actual value

I am doing a query inside a Flutter application. I am having a bit of trouble getting values from a certain node in my firebase realtime database. I'm using the following query final snapshot = await ...
0 votes
1 answer
23 views

Read and write in a same call in Firestore

async function updateBookingSlots(appointmentID) { let slotId; await firestore .collection("bookingSlots") .where("appointmentID", "==", appointmentID) ....
0 votes
1 answer
16 views

Query DB to get a value from an array of arrays [duplicate]

My database is like this: I'm trying to the for example "Ricardo Meireles" with the following code: const getTarefasFuncionario = async () => { setTarefasFuncionario([]); const ...
0 votes
0 answers
3 views

What could be causing the net::ERR_INVALID_HANDLE error when attempting to POST a file to Firebase Storag?

What could be causing the net::ERR_INVALID_HANDLE error when attempting to POST a file to Firebase Storage in connection.ts at line 81 with the specified file name and timestamp in the URL parameters?
  • 41
0 votes
0 answers
17 views

Firebase - Install app on Android 11+ fails

I have a Xamarin Forms mobile app, configured to have minimum Android version 5.0 and Target Android version 13.0. I am distributing the app through Firebase, for testing purposes. When trying to ...

1
2 3 4 5
2774