Use for Firebash Phone Push Notification
Project description
django_firebash_push_service
Requirements
python >= 3.6 django >= 3 djangorestframework requests
Installable App
This app can be installed and used in your django project by:
$ pip install django-firebash-push-service Edit your settings.py file to include 'dj_push' in the INSTALLED_APPS listing.
INSTALLED_APPS = [ ...
'dj_push.apps.DjPushConfig',
]
also add SERVER_TOKEN in your setting.
you can get SERVER_TOKEN from firebash.
Edit your project urls.py file to import the URLs: from dj_push.urls import urlpatterns
url_patterns = [ ... ] + urlpatterns
Finally, add the models to your database:
$ ./manage.py migrate
The "project" Branch The master branch contains the final code for the PyPI package. There is also a project branch which shows the "before" case -- the Django project before the app has been removed.
$ Guide
First save device token
$ api_endpoint = domain + 'device/token/create', Use this endpoint for creating device token $ payload = { $ "token": device_token, $ "device_os: "android" $ }
$ api_endpoint = domain + 'device/token/get', Use this endpoint for get device token
after save token use this method for send notification notice = NotificationSend(user=user_id, message=message, title=title) response_msg = notice.send_device_notification()
Docs & Source Article: https://pypi.org/user/bajpairitesh878/ Source: https://gitlab.com/bajpairitesh878/django_firebash_push_service PyPI: https://pypi.org/user/bajpairitesh878/
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
Hashes for django-push-notification-service-firebash-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cc69b0c232665b08c5a915d19f3d19ce77bb32da0b1ddbf8207d854307d8212 |
|
MD5 | c3347932826d069108423118688d8d09 |
|
BLAKE2b-256 | 9eb2a9af9c75bbff3f9f139b464a4248dcbb519cd9088040b1d523d0d11743a3 |
Hashes for django_push_notification_service_firebash-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bc1bf821f95f102ee0800e5785a8e2f7ba98bfb4972e304fda3d9272de48a66 |
|
MD5 | 5cc1a70e865fa9c3d35eddcb2e2d7618 |
|
BLAKE2b-256 | 170bf2442d64d8f0cae7ae739f10fc3f34097f0bf2f190cbee52adaa4a2c99c6 |