Skip to main content

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.

https://travis-ci.org/hugobrilhante/django-gcm-android-ios.svg https://coveralls.io/repos/hugobrilhante/django-gcm-android-ios/badge.svg?branch=master&service=github Documentation Status https://img.shields.io/pypi/status/django-gcm-android-ios.svg https://img.shields.io/pypi/dm/django-gcm-android-ios.svg https://img.shields.io/pypi/l/django-gcm-android-ios.svg https://img.shields.io/github/release/hugobrilhante/django-gcm-android-ios.svg https://img.shields.io/pypi/pyversions/django-gcm-android-ios.svg

Quick start

  1. Install django-gcm-android-ios:

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

    INSTALLED_APPS = (
        ...
        'gcm',
    )
  3. Add in setting api keys like this:

    GCM_DEVICE_MODEL = "DeviceModel" # default gcm.Device
    GCM_IOS_APIKEY = "IOS_APIKEY"
    GCM_ANDROID_APIKEY = "ANDROID_APIKEY"
  4. Include the gcm routers in your project urls.py like this:

    from gcm.routers import router
    url(r'api/', include(router.urls))
  5. Run python manage.py 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: "
    'http://localhost:8001/api/devices/id_device'

Release files for django-gcm-android-ios 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-gcm-android-ios 1.0.0
File Size Uploaded
django-gcm-android-ios-1.0.0.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-gcm-android-ios 1.0.0
File Interpreter ABI Platform
django_gcm_android_ios-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 35.3 kB

Release files / django-gcm-android-ios-1.0.0.tar.gz

Download URL django-gcm-android-ios-1.0.0.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
90486cc4232a554430212a373d33c4be82d2b4bd14986241c887ab2ed9c11169
BLAKE2b-256 checksum
How to use checksums
ef4be145e4e7f8ac1e1609e23a14254f690021ce87ff4fd02a6dc42604741e21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_gcm_android_ios-1.0.0-py2.py3-none-any.whl

Download URL django_gcm_android_ios-1.0.0-py2.py3-none-any.whl
Size 11.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
29b3542d529c02373bd9ec7bb327a10f284143304a8a94c21104d5a08db18b30
BLAKE2b-256 checksum
How to use checksums
fec338692405297fb38c49df14809f4258c18c8875cabdc72b9a63ff1f8e163f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page