Skip to main content

All Questions

Tagged with
0 votes
2 answers
37 views

FCM push notification error: code: 'messaging/invalid-payload

I'm trying to implement FCM push notifications in a react.js app using Firebase Realtime Database Cloud functions, for the first time and stuck at this: error: Message must be a non-null object I've ...
Iam Wayne's user avatar
  • 561
0 votes
1 answer
37 views

Imported modules becoming undefined in TypeScript Firebase Functions

I'm using Firebase Functions in TS. When executing npm run-script build and starting the emulator, here's what it throws: TypeError: Cannot read properties of undefined (reading 'user') at Object.&...
starleaf1's user avatar
  • 2,894
0 votes
0 answers
25 views

Unable to get the context.uid from the Flutter client side to reach the Cloud Functions

Problem The getPotentialMatches Cloud Function in my Firebase project fails with the error User must be authenticated because context.auth is consistently undefined. The client sends a valid token, ...
Zakaria El Dandachi's user avatar
0 votes
0 answers
39 views

FCM v1 Payload Mismatch: fcm_options.link vs click_action in SW [closed]

I’m using the Firebase Cloud Messaging (FCM) HTTP v1 API to send push notifications to a web app. The web app uses the Firebase JavaScript SDK (v11.2.0), and I have a firebase-messaging-sw.js file at ...
伊関敏輝's user avatar
0 votes
1 answer
47 views

Declaring Firebase auth trigger error: "TypeError: Cannot read properties of undefined (reading 'user')"

I am trying to create a firebase function that essentially listens to an event where a user created using the firebase authentication and then it creates a new record in the real time database where ...
Yanir Aton's user avatar
0 votes
1 answer
33 views

unable to get document data of onDocumentCreated

i'm trying to convert my firebase cloud functions from 1st Gen to 2nd Gen and i can't get the data out of the snapshot typically referred to as event. There must be a simple fix that i'm missing. In ...
Coolkid's user avatar
  • 567
0 votes
0 answers
41 views

Set same signed in user for all contexts of Chrome extension

In a Chrome extension, you can have many separate contexts where the auth of your app isn't shared. That means if you sign in in the popup window/context, the injected content context won't know ...
seaders's user avatar
  • 4,116
0 votes
0 answers
57 views

django application with firebase authentication

LLMs are failing me on this seemingly simple task, so I'm seeking community advise. I have a django application, which works fine. Both when I develop locally, and in production at https://my.domain ...
Kaster's user avatar
  • 427
0 votes
2 answers
119 views

How to shorten the expiration time on Firebase auth tokens for login session?

I am trying to test my refresh token logic using Firebase auth but waiting an hour for it to expire is maddening. The documentation doesn't seem to mention anything about customizing the time: https://...
Bhalli Bhai's user avatar
0 votes
1 answer
43 views

What does a triggering event for testing a (1st gen) Firestore triggered Cloud Function look like?

I have a (1st gen) Cloud (Run) Function that is triggered by a document being created in Firestore. I want to test this function with the TESTING functionality that is built into the Google Cloud ...
Frank van Puffelen's user avatar
0 votes
0 answers
16 views

When I read message in a perticular chat it's working but I can not read all chat list [duplicate]

import { collection, addDoc, serverTimestamp, query, orderBy, onSnapshot, getDocs, } from "firebase/firestore"; import { db } from "./firebase"; export const ...
Aagam Jain's user avatar
  • 1,554
0 votes
0 answers
19 views

Deploying Firebase user().onCreate() Function, undefined 'user' error [duplicate]

This is my index.js file: const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(); exports.createUser = functions.auth.user().onCreate((user) =...
Caden Wright's user avatar
1 vote
1 answer
53 views

FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app-compat/no-app)

I'm trying to use firestore database in my expo project but I can't seem to initialize it correctly as it seems something has changed from last time I used it. I initialized it in my apps root layout ...
Eric Uche's user avatar
  • 147
0 votes
0 answers
57 views

React Native (Expo Managed Flow): Proper way to configure Firebase App Check debug token

I'm trying to configure debug token for my debug build. As official rnfirebase docs seems not to be up to date, I am not able to figure out what I'm missing here. After I enabled App Check from ...
Little Princ's user avatar
1 vote
0 answers
26 views

Parameters of a function wrongly transmitted to firebase functions

exports.createUserProfileManual = functions.https.onCall(async ( data, context) => { // Validate the data const {uid, email} = data; if (!uid || !email) { throw new functions.https....
Nuoxis's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
1596