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

Handling of responses from GCM server #10

Closed kalvish21 closed 10 years ago

kalvish21 commented 10 years ago

The GCM server has responses in JSON that need to be handled. I have the link here: http://developer.android.com/google/gcm/http.html

error: String describing an error that occurred while processing the message for that recipient. The possible values are the same as documented in the above table, plus "Unavailable" (meaning GCM servers were busy and could not process the message for that particular recipient, so it could be retried).

Is this not supported? Couldn't find anything on the documentation for this.

I have it implemented locally on my side for this.

bogdal commented 10 years ago

In the develop branch you can find an improved send_gcm_message method. It returns the entire response content from the gcm server as a dict.