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.
Quick start
Install django-gcm-android-ios:
pip install django-gcm-android-ios
Add “gcm” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'gcm', )Add in setting api keys like this:
GCM_DEVICE_MODEL = "DeviceModel" # default gcm.Device GCM_IOS_APIKEY = "IOS_APIKEY" GCM_ANDROID_APIKEY = "ANDROID_APIKEY"
Include the gcm routers in your project urls.py like this:
from gcm.routers import router url(r'api/', include(router.urls))
Run python manage.py migrate to create the device models
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'To unregister device:
curl -X DELETE -H "Content-Type: application/json" -H "Authorization: " 'http://localhost:8001/api/devices/id_device'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-gcm-android-ios-1.0.0.tar.gz.
File metadata
- Download URL: django-gcm-android-ios-1.0.0.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90486cc4232a554430212a373d33c4be82d2b4bd14986241c887ab2ed9c11169
|
|
| MD5 |
23d616badcbacd2920c532d5c7cba7cb
|
|
| BLAKE2b-256 |
ef4be145e4e7f8ac1e1609e23a14254f690021ce87ff4fd02a6dc42604741e21
|
File details
Details for the file django_gcm_android_ios-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: django_gcm_android_ios-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29b3542d529c02373bd9ec7bb327a10f284143304a8a94c21104d5a08db18b30
|
|
| MD5 |
e47c51e5c9f17acb90ff4064cf1ae4e5
|
|
| BLAKE2b-256 |
fec338692405297fb38c49df14809f4258c18c8875cabdc72b9a63ff1f8e163f
|