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

Documentation #7

Closed snijsure closed 11 years ago

snijsure commented 11 years ago

There are few documentation issues/hurdle to get things working:

  1. So once one installs django-gcm one has to run following commands right?

python manage.py syncdb python manage.py migrate

  1. In settings.py one should be entering key generated for server app, browser app or Android app for GCM_KEYS?
  2. I compiled the associated android pager program and installed it on my system. I got what one needs to set GCM_SENDER project number from google app server.

But not clear what should value of API_URL should be?

static public String API_URL = "/gcm/v1/device/";

If someone can show me how to get this working, I will be more than happy to update documentation.

-Subodh

bogdal commented 11 years ago

Hi @snijsure Django-gcm hasn't migrations, so command python manage.py syncdb is enought. On the Google APIs Console page you have to generate key for server apps. Variable API_URL in Pager application, should contain direct url to your django application e.g: https://yourdjangoapplication.com/gcm/v1/device/

cheers

snijsure commented 11 years ago

Thanks a lot that helps a lot and works perfectly. Should I update the README file and send you a pull request? If you wish to update to README file with above description that would be fine too.

Please let me know.

Regards.

bogdal commented 11 years ago

@snijsure I added docs for this project (develop branch). If you want to update it, feel free to send a pull request. Documentation is available on readthedocs.