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?
Asked
Active
Viewed 1,479 times
6
-
Although possible, this is not advisable. Sending a message requires a Server Key, which you'll probably have to put in your Android side code in order to send the message. Note that Server keys must **always** be kept secret. – AL. Feb 03 '17 at 06:10
-
Also, how do you plan to receive these notifications in Python code? For what I know, existing libraries only allow you to send notifications, not to receive them. – MarSoft Jul 20 '17 at 01:07
-
Device running python code? you want to recieve notifcation on desktop/laptops? I dont think there is any recieving notification method in python, But they do offer listeners for read and write for realtime database, One way is to update the DB at the same time, and make your python script to listen to that datapath inside firebase database – Dr.House Aug 16 '22 at 18:00