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
1
vote
0 answers

Push notification show small rectangular in bottom

I am new at Android developing. I have work on create push notification. But not successfully yet. I have Python for send notification to Android phone (Android 9). This code is: import urllib import json import sys from pyfcm import…
Antiokhos
  • 2,944
  • 5
  • 23
  • 32
1
vote
0 answers

How to activate optional 'registration_id' in results[] response?

FCM documentations talks about a 'optional' field in results[] response, but neither about how to activate this option. I would like a different solution that indexed positions requests way. Table 5 firebase doc
Dario
  • 123
  • 10
1
vote
2 answers

Firebase Cloud Messaging - Django - how do I service worker?

Update from a place of mild understanding: I have read much about Service Workers and advanced the project I'm working on far past where it was when I wrote this. The main issue I was exploring here (getting firebase-messaging-sw.js served from the…
Inversus
  • 3,125
  • 4
  • 32
  • 37
1
vote
1 answer

FCM - cannot receive notifications sent from the same device after logging in as a different user

I'm sending notifications from my Flask server using PyFCM, and I'm testing it on a single Android device. The test is like this: I am signed in as user A, and I make a comment on a post of user B which should display a push notification once B…
Bargain23
  • 1,863
  • 3
  • 29
  • 50
1
vote
1 answer

Localized Notifications iOS 10 using FCM

We have a Django backend server using pyfcm to deliver Notifications throgh Firebase Cloud Messaging (FCM). I just updated to the today released Version 1.3.0. I want to send a notification using the loc-key and loc-args parameters so it can be…
fgroeger
  • 422
  • 5
  • 18
1
vote
0 answers

AWS Lambda (Python) - FCM Integration with Default VPC is not working

I have followed below link and integrated FCM into AWS Lambda (Python) function. https://github.com/olucurious/PyFCM. Its works fine with no VPC configured. But when I integrate with Lambda method to query RDS using default VPC configured, its not…
1
vote
1 answer

Is it possible to send push notification with message icon from the server side to android device via PyFCM

I want to send push notification to android application with icon from the server side. Is it possible or did i get it wrong? If it's possible, then which image format are expected as an input for PyFCM method notify_single_device for parameter…
1
vote
1 answer

How to send FCM message with only data payload via PyFCM?

I'm trying to send data-only FCM message to topic subscribers. But it not works nether when app in background or closed. My android app have following code: FirebaseMessaging.getInstance().subscribeToTopic("topicname"); My FCM-sender code from…
amazingbasil
  • 1,695
  • 3
  • 18
  • 23
1
vote
1 answer

'certificate verify failed' when using PyFCM to send a Push Notification

I'm trying to send push notifications via PyFCM (via Firebase Cloud Messaging). When I tried to do this initially, I got the SNIMMissingWarning telling me that the request to the Firebase server was insecure. I upgraded packages to handle this, but…
pragman
  • 1,564
  • 16
  • 19
1
vote
2 answers

How to implement FCM onMessageReceived() listener in my Android activity

I have a PyFCM server sending notifications via Firebase (FCM) to my simple android app. I have tested and get regular notification messages to appear in the tray when the app is running in the background no problem. I would now like to receive data…
SkyNT
  • 718
  • 1
  • 8
  • 19
0
votes
0 answers

I see less than half of the number of push notification sent on firebase dashboard than number we actual send daily using pyfcm library

We send more than 500k push notifications daily but only 150k messages sent on that day shown in Firebase dashboard. I want to know why firebase dashboard analytics not giving correct number for messages sent daily and how can i fix this issue
0
votes
1 answer

ModuleNotFoundError: No module named 'requests.adapters' when using pyfcm

I'm trying to use pyfcm library in my django project , by adding it to requiements.txt but I noticed that it is getting an error that mainly comes because of trying to import from requests library .. here is the error : rolla_django | from…
Ahmed Wagdi
  • 3,913
  • 10
  • 50
  • 116
0
votes
0 answers

Extending Models Django

How to change the model fields of an existing model which is in a package? (pip install fcm-django - FCMDevices), I need to add extra columns to that model and rename some of the fields. like column registration_id in (package model) need to rename…
0
votes
1 answer

Declare Firebase Notification TTL on python PyFCM

This code is working as expected, but all the notifications sent are set default expiry time (28 days). from pyfcm import FCMNotification push_service = FCMNotification(api_key="") data_message = {"foo":"bar"} result =…
Ezequiel Adrian
  • 726
  • 1
  • 11
  • 29
0
votes
1 answer

Firebase messaging problems under iOS

Please see new findings below Despite following the configuration steps in the Firebase_messaging docs, I cannot get FCM to work properly on iOS. DATA messages work as intended. NOTIFICATION messages do not show up at all, whether app is in…
poultrynews
  • 591
  • 1
  • 7
  • 15