Skip to main content

Send a message using GCM HTTP connection server protocol

Project description

django-gcm-android-ios is a simple Django app to send a message using GCM HTTP connection server protocol.

Detailed documentation is in the “docs” directory. Documentation Status

Quick start

  1. Install django-gcm-android-ios:

    pip install django-gcm-android-ios
  2. Add “gcm” to your INSTALLED_APPS setting like this:

  3. Add in setting api keys like this:

    GCM_DEVICE_MODEL = "DeviceModel" # default gcm.Device
  4. Include the gcm routers in your project like this:

    from gcm.routers import router
    url(r'api/', include(router.urls))
  5. Run python migrate to create the device models

  6. To register device:

    curl -X POST -H "Content-Type: application/json" -H "Authorization: "
     -d '{
        "dev_id": "Device id",
        "dev_type": "ANDROID or IOS",
        "reg_id": "Register id"
       }' 'http://localhost:8001/api/devices'
  7. To unregister device:

    curl -X DELETE -H "Content-Type: application/json" -H "Authorization: "

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-gcm-android-ios, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_gcm_android_ios-1.0.0-py2.py3-none-any.whl (11.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-gcm-android-ios-1.0.0.tar.gz (24.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page