Questions tagged [pyfcm]

PyFCM is a Python client for Firebase Cloud Messaging for Android & iOS.

See the official docs in GitHub here: https://github.com/olucurious/PyFCM

41 questions
6
votes
0 answers

How can I recieve Firebase Notifications on a Python Client?

I want to send a message from an android device to a device running python code. I don't want to implement a server for complete FCM Messages but instead use the "server-less" Notifications. Any way to do this without setting up my own FCM Server?
Karan Modi
  • 972
  • 2
  • 13
  • 26
5
votes
1 answer

How to register a device on FCMDevice of fcm-django?

I'm a beginner at Django. Referring to this link, I installed fcm-django and finished setting. fcm-django doc Install fcm-djagno. pip install fcm-django Setting fcm-django on settings.py. import firebase_admin from firebase_admin import…
JRR
  • 51
  • 1
  • 4
4
votes
3 answers

Pushing Notification to all users in Firebase

I am trying to send push notifications using python to all users. However, I am aware that there is no way to do this using apps and you have to use topics (as far as I am aware). Is there a way that I can create a topic out of the app? Thanks Edit:…
Programmer12
  • 89
  • 1
  • 8
4
votes
0 answers

I want to Send FCM notification using python

i want to send fcm notification to topic using just python from pyfcm import FCMNotification API_KEY = "AAAA...Gzzjo" push_service = FCMNotification(api_key=API_KEY) data = {'notification': {'title': 'Test','body': 'first test'} ,…
4
votes
1 answer

what is Device Registration ID for firebase fcm and where I can extract them?

from pyfcm import FCMNotification push_service = FCMNotification(api_key="") registration_id = "" message_title = "Uber update" message_body = "Hi john, your customized news for today is ready" result =…
Harshit verma
  • 506
  • 3
  • 25
3
votes
2 answers

Sending fcm from PYTHON(flask) but not receiving on android side

Here are three different ways I try to send data message fcm. 1. With pyfcm def send_fcm(fcm_tokens, title=None, body=None, data_message=None): push_service = FCMNotification(api_key=app.config['FCM_KEY']) try: if type(fcm_tokens) is…
3
votes
2 answers

Firebase pyfcm send push notification with an image

i am trying to send push notifications using Firebase and pyfcm https://pypi.python.org/pypi/pyfcm/. But i want to know how to send a image with the notification, because searching in the parameters there are no option this is the documentation code…
fer
  • 87
  • 2
  • 9
2
votes
0 answers

Can't find notifications in firebase console after push notification in pyfcm

I'm working on a project where I have to push notifications using pyfcm. I created a firebase project and I took the api key and created an FCMNotification like this : from pyfcm import FCMNotification push_service = FCMNotification(api_key="my api…
nassim
  • 1,547
  • 1
  • 14
  • 26
2
votes
1 answer

Example of restricted_package_name usage in FCM

I am currently working on two different apps but testing them on a single hardware device (as that is one of my usage scenarios) - I have seen a similar question at StackOverflow on how to send notifications to one of two apps in the same project at…
kilokahn
  • 1,136
  • 2
  • 18
  • 38
2
votes
0 answers

Ensuring onMessageReceived() is invoked when a FCM data message is sent even when App is closed

I am trying to send FCM data messages from my server. This is how a message request looks like: POST https://fcm.googleapis.com/fcm/send Content-Type:application/json Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA { "data": { "score": "5x1", …
Jonas
  • 534
  • 8
  • 16
2
votes
1 answer

Device Registration Id for Android and iOS for mobile web application using pyfcm

I am new to push notification. I am trying to use pyfcm for sending push notifications. A few questions: Registration_ids: I am not sure how to get the "registration_ids" for iOS and Android through pyfcm. Also is it same as the instance id…
1
vote
1 answer

How to send In-APP Notification in Firebase using Python SDK for Android | iOS

I've successfully integrated Firebase Python SDK for Android/iOS notifications. Now I want to send in-app notification using firebase python sdk. I couldn't find any code for this on Firebase official documentation. Here is my code for sending push…
1
vote
0 answers

Reliable Server Client Communication in python

Trying to create a reliable communication from server to client in python. the loss and delay of reception should be as low as possible. Here is my thought, client notices server(DNS) when internet is up server saves client IP broadcast data1 to…
1
vote
3 answers

pyfcm.errors.AuthenticationError: There was an error authenticating the sender account

I am new to FCM in python. raise AuthenticationError("There was an error authenticating the sender account") pyfcm.errors.AuthenticationError: There was an error authenticating the sender account While sending the push notification to the…
1
vote
0 answers

How to schedule push notification to run at a certain time in python with heroku

I am new to python and this is my first REST project with flask. I am trying to integrate the REST to mobile apps. What I am trying to do is to consider a booking app that places an order to the REST api. the booking object has a date that…
Mikky
  • 53
  • 4
1
2 3