📱 Notify PWA

Send push notifications to other apps

Step 1: Enable Notifications

Step 2: Send Test Notification

ℹ️ How It Works

  1. Click "Enable Push Notifications" to register this device
  2. Your FCM token will be displayed - save it to send notifications later
  3. Use the test form to send a notification to yourself
  4. To send notifications from other apps, use your Cloudflare Worker URL with the FCM token

🔧 API Endpoints

POST /send-notification
{
  "token": "FCM_TOKEN",
  "title": "Notification Title",
  "message": "Notification message",
  "data": { "url": "/" }
}
POST /send-to-multiple
{
  "tokens": ["TOKEN1", "TOKEN2"],
  "title": "Notification Title",
  "message": "Notification message"
}