olucurious / PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
http://olucurious.github.io/PyFCM/
MIT License
803 stars 206 forks source link

Receiving FCM notifications #298

Closed yaroslaff closed 3 years ago

yaroslaff commented 3 years ago

Hello!

Is it possible to receive FCM notification with PyFCM or any other python library?

I have 'server' app which should notify 'clients' about some events. Currently I'm using webhooks (each client app runs built-in webserver). This looks too heavy and works only when client has public IP address. But since android with FCM works well even behind NAT, I'm thinking about using FCM for this purpose. Do you think it's possible?

olucurious commented 3 years ago

You can only receive messages via an Android, iOS or web client https://firebase.google.com/docs/cloud-messaging#how-does-it-work