Step 1: Enable Notifications
Step 2: Send Test Notification
ℹ️ How It Works
- Click "Enable Push Notifications" to register this device
- Your FCM token will be displayed - save it to send notifications later
- Use the test form to send a notification to yourself
- 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"
}