f98ad5d0ee
- Add push_notifications.py module for managing subscriptions and sending notifications - Create Flask API endpoints for subscription management (/api/push/*) - Integrate push sending with existing notification system (_create_notification) - Create frontend JavaScript library (push-notifications.js) for client-side subscription - Update base.html template with manifest link and Service Worker registration - Add manifest.json and service-worker.js for PWA support - Add pywebpush dependency to requirements.txt - Create generate-vapid-keys.sh script for VAPID key generation - Add comprehensive documentation (WEB_PUSH_NOTIFICATIONS.md) Features: - Subscribe/unsubscribe users from push notifications - Store subscriptions in MongoDB with automatic indexing - Send push to individual users or all admins - Notification deduplication and versioning - Service Worker handles offline caching and push events - Full PWA support for mobile app installation - VAPID authentication for secure push communication
16 lines
157 B
Plaintext
16 lines
157 B
Plaintext
flask
|
|
werkzeug
|
|
gunicorn
|
|
pymongo==4.6.3
|
|
pillow
|
|
qrcode
|
|
apscheduler
|
|
python-dateutil
|
|
pytz
|
|
requests
|
|
redis
|
|
reportlab
|
|
python-barcode
|
|
openpyxl
|
|
cryptography
|
|
pywebpush |