bogdal / django-gcm

Google Cloud Messaging Server in Django
https://django-gcm.readthedocs.org
BSD 2-Clause "Simplified" License
98 stars 42 forks source link

Support for Device groups #48

Open salberin opened 8 years ago

salberin commented 8 years ago

One functionality that is not currently supported by django-gcm is support for device groups. This would allow multiple devices to be registered on one notification key. Is this something that could be supported in the model of Django-gcm?

bogdal commented 8 years ago

@salberin Check this out. Topic messaging allows to register multiple devices to a single topic.

salberin commented 8 years ago

@bogdal Sorry, that's not the same. Device groups allow sending messages back to the other devices in the group. This allows for clearing of notifications on other devices in the same group, for example. That is exactly the functionality i'd like to use.

bogdal commented 8 years ago

@salberin You can extend the Device model and add e.g. foreign key to the group.