Fatal1ty / aiofcm

An efficient Firebase Cloud Messaging Client Library for Python/asyncio
Apache License 2.0
34 stars 19 forks source link

Feature request: Send to firebase Topic #4

Open jsmolina opened 6 years ago

jsmolina commented 6 years ago

I think this quite simple but also good library is missing just 'send to topic' implementation. Something simple like this could work:

result = dict(
            message_id=self.message_id,
            to=self.device_token or  '/topics/{0}'.format(self.topic_name),
        )

Of course, current implementation allows reusing device_token and just sending the /topics with it, but this way will be more simple

jfgaudreault-p commented 5 years ago

+1