olucurious / PyFCM

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

Is there a way to send notification to a topic? #237

Closed KwanWaiChung closed 2 years ago

KwanWaiChung commented 5 years ago

I am aware that we can send a message to a topic, but can we send a notification to a topic? thanks

LucasHild commented 5 years ago

Sure, that's possible:

push_service = FCMNotification(api_key=api_key)

push_service.notify_topic_subscribers(
    topic_name=topic,
    message_title=title,
    message_body=message,
)
sachinkumar502 commented 4 years ago

thats not working it show success but mobile side didnt receive anything.

marianlukac commented 4 years ago

Is this project still living? I have the same problem as @sachinkumar502 ...