1003 B
1003 B
Selfhost-Instanz anbinden
- Instanz im Admin-Dashboard anlegen.
instanceIdund den einmalig angezeigtenclientSecretin der Selfhost-Instanz speichern.- Selfhost-Instanz sendet regelmäßig
POST /v1/instances/heartbeat. - Geräte werden über
POST /v1/devicesregistriert. - Push-Aufträge werden über
POST /v1/pushgesendet.
Umgebungsvariablen der Selfhost-Instanz
FEDEO_PUSH_MODE=central
FEDEO_PUSH_GATEWAY_URL=https://push.fedeo.cloud
FEDEO_PUSH_INSTANCE_ID=inst_...
FEDEO_PUSH_CLIENT_SECRET=fps_...
FEDEO_PUSH_PAYLOAD_MODE=minimal
Minimaler Push-Auftrag
{
"idempotencyKey": "notification-item-id:dev_...",
"devices": ["dev_..."],
"priority": "normal",
"ttlSeconds": 3600,
"collapseKey": "communication.message.new",
"notification": {
"title": "Neue FEDEO-Benachrichtigung",
"body": "Öffne FEDEO, um die Details anzusehen."
},
"data": {
"notificationId": "lokale-notification-id",
"link": "/communication"
}
}