Skip to main content

All Questions

1 vote
0 answers
38 views

Google Cloud Run Function v2 - erratic trigger [duplicate]

PLEASE NOTE: This question is related to my previous question (Deployment of Google Cloud Run Function v2 - trigger not invoked / run), but is regarding a different specific problem. I am migrating my ...
Kermit's user avatar
  • 3,417
0 votes
1 answer
445 views

Deployment of Google Cloud Run Function v2 - trigger not invoked / run

I am migrating my Google Cloud Run Functions from v1 and Node 12 to v2 and Node 20. So far I have upgraded onSchedule and onMessagePublished triggers with no problem. When trying to deploy Realtime ...
Kermit's user avatar
  • 3,417
2 votes
0 answers
317 views

How can I properly connect my React Native application to a Firebase Emulator Suite?

I have been working on a react native application using a bare workflow. I have a Firebase project set up with Authentication and a Realtime Database which is already working with the app using live ...
Karl Hernandez's user avatar
1 vote
0 answers
69 views

Firebase RealtimeDatabase local emulator doesn't work as intended

I'm trying do develop some firebase functions; I'm usign Firebase tools with functions and relatime database emulators. When I manage to catch an update to a certain field on my db I want to make a ...
nico_1512's user avatar
  • 140
0 votes
1 answer
162 views

Google firebase database with google functions running locally

I have an app connected to google firebase realtime database. I want to test google cloud functions as a server for running backend functions triggered once every day or triggered by data changed in ...
Raz Gavrieli's user avatar
0 votes
0 answers
95 views

How to debug Firestore Function onCreate()?

I have a Firebase Function with onCreate() function, which I would like to debug. My goal is, that when I add a new element in the Firebase Database, to stop the app at the breakpoint in the onCreate()...
GSeriousB's user avatar
  • 251
1 vote
1 answer
233 views

what is the difference between "firebase login" and "firebase login:ci"?

When i login with firebase login:ci it returns a token, but when I login with firebase login it does not. What is the difference in other functionality? Deployment works as expected using firebase ...
Vimal Swaroop J's user avatar
0 votes
2 answers
541 views

Firebase Realtime Database Emulator: Can't read from database (snapshot is always null) even though onWrite function gets triggered

I have a very simple Cloud Function running in the emulator: functions.region('europe-west1').database.ref('teams/{teamId}/members/{memberId}') .onWrite(async (change, context) => { const ...
CaitlynCodr's user avatar
0 votes
1 answer
387 views

Access Firebase Realtime database/Firestore from Cloud Function via Firebase Emulator

I want to use a tool like postman or my react native app to call a Firebase Cloud function and get access to Authentication, Firestore, Storage or Realtime Database emulator from the cloud function. ...
endlessCode's user avatar
  • 1,405
0 votes
1 answer
169 views

DataSnapshot.ref in Functions Emulators only points to default database

Let's say I have a node in a secondary realtime database called "test" with a value of "foobar". I want to set up a function that prevents it from being deleted. More realistically ...
Kanti Kuijk's user avatar
2 votes
1 answer
389 views

Firebase cloud functions emulators always write to a default database

I recently set up the firebase emulators to run my cloud functions locally. After setup, the cloud functions triggered successfully but any write to the real-time database does not reflect in the ...
Mayor's user avatar
  • 333
3 votes
1 answer
2k views

Start firebase emulator with default database filled with dummy data [duplicate]

Whenever I start the emulator I have to import a database for the realtime database and sometimes make the top level collections manually for firestore. Is there a way to setup the emulator, such that ...
nsrCodes's user avatar
  • 1,148
1 vote
0 answers
48 views

Firebase Emulator Suite in different consoles

It would be great to run the Database emulator in a console and then, for example, the functions emulator in another console. In this fashion, You could upload your test-data to the Realtime DB and ...
Alfr3's user avatar
  • 11
1 vote
0 answers
158 views

Emulator database onUpdate update.after.ref incorrect

I use the emulator for functions and realtime database, and have a test onUpdate function attached to a secondary database (not the default one). const admin = require("firebase-admin"); ...
Kanti Kuijk's user avatar
0 votes
1 answer
267 views

Firebase onCreate method not triggering

I have a onCreate function which is not triggering. Here's the code - exports.listen = functions.database.ref('/GSTTiasQ3gWtYOEWbTwpwd8dL4G2/{id}').onCreate(async (change, context) => { console....
user3399180's user avatar

15 30 50 per page