xtrinch / fcm-django

FCM Django: Send push notifications via django to websites, iOS & android mobile devices through FCM (Firebase Cloud Messaging)
http://fcm-django.readthedocs.io/
MIT License
775 stars 196 forks source link

How to Send Topic messages #31

Closed claudiocleberson closed 6 years ago

claudiocleberson commented 7 years ago

Hi,

I quick question, I couldn't find any way to Send notification to a specific topic. is there any way to do that?

"to": "/topics/general", "data": { "message" : "my", "other_key" : true, "body":"teste number 3" }, "notification" : { "title" : "FCM Message", "body" : "Still getting pushs", "content_available" : true }, "priority": "high"

xtrinch commented 7 years ago

That is a feature yet to be implemented. Open to pull requests, otherwise will get to it when I have more time :)

Bartvds commented 7 years ago

Any word on this? Seems quite an important part of FCM.

I see PyFCMhas support for topics (https://github.com/olucurious/PyFCM/blob/20be33c28fa485068165c424eb178eba553b889c/pyfcm/fcm.py#L189), so does this need anything more then a wrapper in fcm_django/fcm.py ?

xtrinch commented 7 years ago

Yeah, a wrapper should be enough.

xtrinch commented 6 years ago

Resolved in 0.2.18