All Questions
Tagged with firebase-admin python
220 questions
1
vote
1
answer
119
views
Firebase Cloud Function fails to send notifications in flutter App - UNAUTHENTICATED
I have setup my cloud function to send notifications to my app. However, I stuck on an issue that returns the error below:
Failed to send message to dkmC6rNuCE...: Request is missing required
...
1
vote
0
answers
180
views
How do I send an FCM notification from a backend when the Flutter app is terminated?
I'm working on a Flutter app that uses Firebase for notifications. Right now, the notifications work fine when the Flutter app is in the background. However, when I close the app, the notification ...
2
votes
1
answer
76
views
Firebase admin taking an infinite time to work
I recently started using firebase admin in python. I created this example script:
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
cred = credentials....
1
vote
0
answers
35
views
Firebase Realtime Database Emulator - Python Listener Not Triggering on Data Changes
I am running a Firebase Emulator with a Realtime Database and trying to create a listener in Python that detects changes inside the database.
My Code:
import os
import firebase_admin
from ...
2
votes
1
answer
105
views
How to add data to Firestore database using python?
I am trying to add test_data dictionary to my Firestore database using python. It is not working since .set() method is not showing there anymore by vscode auto suggestion.
from datetime import ...
1
vote
0
answers
81
views
Google authentication failed: Firebase ID token has incorrect \"aud\" (audience) claim
I’m encountering an issue with Firebase authentication on my backend. My frontend team and I are using Firebase Authentication to authenticate users with Google, but I’m getting the following error:
...
1
vote
1
answer
349
views
access firestore database other than (default) in python
I cannot access a Google Firestore database other than one named "(default)". I looked other other solutions online, and added a key to my credential "databaseId" but that doesn't ...
2
votes
2
answers
2k
views
FCM Send MulticastMessage
I run tihs code:
cred = credentials.Certificate('x.json')
firebase_admin.initialize_app(cred)
registration_tokens = [
'GET REAL TOKEN1',
'GET REAL TOKEN2',
]
message = messaging....
0
votes
1
answer
67
views
Firebase email confirmation is not working
Firebase email confirmation is not working
I have set up email sending in Firebase Auth.
The email arrives, but after clicking the generated link, the email_verified flag remains false.
Here is my ...
4
votes
2
answers
230
views
Firebase Firestore client cannot be deployed
I have an Firebase Cloud Functions codebase that uses Firestore database. Everything below works when I use it in local emulator using firebase emulators:start but when I need to deploy it to Firebase ...
0
votes
0
answers
35
views
issues in fetching data from firebase
I have uploaded the data on firebase which has 12,000 products, and each product has multiple sections, firstly I want to fetch one of the sections from each product.
Example: product 1 -> _id, ...
0
votes
1
answer
30
views
Django Mock database not working properly
I was coding a unit test method for a post method, but for some reason, it keeps modifying the actual database instead of the mock database.
This is my test method:
def test_post_contest(self):
...
2
votes
1
answer
393
views
Firebase-admin sdk for Python raise error "StreamGenerator" is not iterable
Previously(a week ago) my Python code for communicating with Firestore works perfectly fine. But today I started working on it again, it raise error when iterating the collection.stream()
...
0
votes
1
answer
127
views
Issue with Data-Only Push Notifications Displaying in FCM
I'm using FCM to send push notifications to mobile devices with a Python backend, specifically using the firebase_admin library. I'm sending both data-only and notification messages. Here are the ...
0
votes
0
answers
79
views
Errno 110 Connection timed out in firebase admin python lambda
I'm trying to create a lambda python api that can send notification to a user device but I'm encountering Connection Timed Out error.
Also tried already to set the timeout in lambda to 1 minute but ...