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
0
votes
1 answer

Push notifications sound not coming

I tried to use like below I am using pyfcm to send notifications (https://github.com/olucurious/PyFCM/). push_service = FCMNotification(api_key) push_service.notify_multiple_device(registration_ids=registration_ids,…
user2349115
  • 1,288
  • 2
  • 17
  • 34
0
votes
1 answer

how to fix 'InvalidRegistration' FCM

I'm getting the InvalidRegistration error in response of my post request for sending push notification. When I use the Firebase console to send push notification it works all fine. so I copy the exact registration token I've used in console. I also…
0
votes
1 answer

problems sending Firebase message with data

I am able to successfully send a title/text message using pyfcm: result = push_service.notify_multiple_devices(registration_ids=registration_tokens, message_title="title", …
jordanthompson
  • 888
  • 1
  • 12
  • 29
0
votes
1 answer

How do I implement FCM on Python?

This is my serializer class which consists of 2 tables i.e Server and Android .On the android table i have created a function that if both the labels (i.e label from Server and Android are same return label to new field i.e(return_label).Now all i…
0
votes
0 answers

Push Notification not working with push notification time

When I am using push notification in python then I am not able to sent push notification time as per required Example : 1m or 60m etc I am using https://github.com/olucurious/PyFCM this in application. Please give me example how to send push…
Kuldeep Raj
  • 791
  • 1
  • 7
  • 29
0
votes
2 answers

Getting import error while using pyfcm

installed pyfcm using : pip install pyfcm from pyfcm import FCMNotification ImportError: cannot import name 'FCMNotification' getting this import error in both python2.7 and python3.5
kavin
  • 113
  • 2
  • 14
0
votes
1 answer

Firebase onMessageReceived() not called via pyfcm

I am trying to pass "badge" numbers via FCM. I know that onMessageReceived() only get called when : [payload contains only "data", no message] I am using "com.google.firebase:firebase-messaging:11.0.2" and pyfcm on server side to send my…
Wesely
  • 1,425
  • 14
  • 23
0
votes
0 answers

Firebase FCM get reg_id that caused the NotRegistered error

I have this response; {'failure': 1, 'canonical_ids': 0, 'success': 1, 'multicast_id': 01234, 'results': [{u'error': u'NotRegistered'}, {u'message_id': u'0:1475496554732379%48fdacf748fdacf7'}]} Before in GCM I'm able to get which reg_id failed, but…
0
votes
1 answer

How to send FCM notification at specific time?

I can be able to send FCM notifications to single or multiple devices through PyFCM instantly. # Send to single device. from pyfcm import FCMNotification push_service = FCMNotification(api_key="") # OR initialize with proxies proxy_dict…
Avinash Raj
  • 172,303
  • 28
  • 230
  • 274
-2
votes
1 answer

How to set registration_id in pyfcm

So I have project with push notification, I have app build with Ionic (Client - receive notification) and I have server to push the notification with pyfcm. In pyfcm, how to get registration_id ? I try dummy the registration_id then the response is…
-3
votes
1 answer

How to use cURL in python

I want to use this cURL command in (python with pycurl): curl -X POST --header "Authorization: key=AAAAWuduLSU:APA91bEStixxx" --header "Content-Type: application/json" https://fcm.googleapis.com/fcm/send -d '{"to" : "fC6xEWZwcu0:APA91xxx", …
user9614161
  • 5
  • 1
  • 3
1 2
3