[Answer]-TypeError during send_message in django push notifications 1.2.1, python 3.4, django 1.8.1

1👍

✅

in gcm.py(in my case, located at ~/.virtualenvs/grape/lib/python3.4/site-packages/push_notifications/gcm.py)

replace

result = json.loads(_gcm_send(data, "application/json"))

to

result = json.loads(_gcm_send(data, "application/json").decode('utf8'))

Leave a comment