Receive key notifications from AWS (or elsewhere) as push notifications on any device.
- Create a new DB in your MySQL instance
- Import the database structure from
Example DB.sql
- Update credentials in
config.ini.example
- VAPID keys can be generated by following the instructions at https://github.com/web-push-libs/web-push-php?tab=readme-ov-file#authentication-vapid. The
private_key.pem
can be deleted, we just need the*_key.txt
files
- Rename
config.ini.example
toconfig.ini
- Deploy the code and visit the public UI
- Register your device for notifications
- For iOS, we recommend "Add to Home Screen" via the Share menu first
For my personal setup, I mostly use the SNS topic. From the AWS Console:
- Navigate to the Simple Notification Service page
- Create a new topic
- Create a new subscription
- HTTPS
- Endpoint:
https://<your url>/push.php
- It should automatically confirm the subscription
- Using CloudWatch, setup triggers for whatever events necessary (ex: pipeline or alarms) and use the SNS topic as the destination.
You can also post messages to https://<your url>/push.php
using the message
POST form field
- Include a history of messages being sent
- Make it actually work on mobile
- Include branding
- Make SSO optional