A simple Django app to send notifications using Firebase! Adding Firebase Cloud Messaging Service into a Django Project The aim of this repository is to provide a step-by-step guide and a basic project sample to implement FCM (Firebase Cloud Messaging) feature into a django-based project.
Project description
fcmnotify is a simple Django app to conduct Web-based fcmnotify. For each question, visitors can choose between a fixed number of answers.
Detailed documentation is in the “docs” directory.
Quick start
Add “fcmnotify” to your INSTALLED_APPS setting like this:
pip install fcmnotify
Add “fcmnotify” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'fcmnotify', ]
Include the fcmnotify URLconf in your project urls.py like this:
path('', include('fcmnotify.urls')), or # url(r'^', include('fcmnotify.urls')),
Run python manage.py migrate to create the polls models.
Start the development server and visit http://127.0.0.1:8000/admin/ to create Firebase information.
Go into Fcmnotify > fcmsettings Add Firebase information . visit http://127.0.0.1:8000/fcm-settings/ To download HTML SETTINGS file include download HTML file into base html file {% include ‘fcm_settings.html’ %}
- To send Notifications .
Call “from fcmnotify.sender import fcm_notify” send notification using fcm_notify fcm_notify(sender, recipient, message, title=”DK”, dataObject=None)
- NOTE:
Make sure you have jQuery, Your Browser should have notification permission
Project details
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
File details
Details for the file fcmnotify-1.2.2.tar.gz
.
File metadata
- Download URL: fcmnotify-1.2.2.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe06dc63ef39e13f8d4d0c6b5456b6bd475aca3456fc88e0f709e7bbe17a1340 |
|
MD5 | 50ba5d5dde47bd23b96b00275ad806fc |
|
BLAKE2b-256 | b43f63e9836827bac36161ab81e635923c7baba1b361388d850f58e08546b47f |
File details
Details for the file fcmnotify-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: fcmnotify-1.2.2-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0656a833d58d54346ea9582d2f1016d31ceb28ff658f5f216dc7a8f7689cb5f |
|
MD5 | 6af9c919588d37420f9a5aea396e48bd |
|
BLAKE2b-256 | 6073c14832f5be164df24fc7b3cf3e9772ccc87cac6a3ac5ea0c3c87570fcac5 |