/djangowebpush

Django Web Push Notification Example

Primary LanguagePython

Django Push Example

  1. Setup Project
virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt
python manage.py migrate
  1. Install ngrok

Go to https://ngrok.com/download

  1. Run server and ngrok tunnel
python manage.py runserver

In other tab:

ngrok http 8000
  1. Open ngrok hostname in browser. Allow notifications

  2. Send notification with form

  3. Send notifications following /send_push url