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

Device name not added after registration #18

Closed okal closed 9 years ago

okal commented 10 years ago

Hi,

I'm sending a JSON payload of the following form

'{"reg_id": "<registration id>", "dev_id": "<device id>", "name": "A Device"}'

Running $./manage.py gcm_messenger --devices gives me the following.

(#1) None

The device is registered, but the name is set to None, for some reason. Any idea why that might be happening?

PS: Thanks for the great work :-)

okal commented 10 years ago

Also worth noting: The dev_id and reg_id fields are saved as expected.

bogdal commented 10 years ago

Thanks @okal for drawing attention to this. It looks like we completely ignore the device name during the registration.

bogdal commented 9 years ago

Fixed in #22