Konfiguration um Push-Notifications via Sygnal zu versenden
Hallo Team des Bundesmessengers, vielen Dank für Ihre/Eure Arbeit.
Wir evaluieren den Bundesmessenger aktuell als Ersatz für eine propritäre Chat-Lösung und kommen ganz gut voran. Es soll auch eine eigene App angebunden werden, die Push-Notifications erhalten soll. Nachdem es jetzt ein angepasstes Docker-Image von Sygnal gibt, konnten wir den Dienst auch mit dem neuen Konfigurationssyntax von Firebase starten, jedoch scheint hier etwas noch nicht zu stimmen.
Wenn ich mir die Logs des ...-pusher
pods ansehe, tauchen folgende Meldungen auf (Domains/User/... sind abgeändert):
2024-04-22 12:38:47,195 - synapse.http.client - 413 - INFO - httppush.process-11 - Received response to POST https://matrix.unseredomain.de/_matrix/push/v1/notify: 404
2024-04-22 12:38:47,196 - synapse.push.httppusher - 410 - WARNING - httppush.process-11 - Failed to push data to @user123:matrix.unseredomain.de/app-id/abc:123...: <class 'synapse.api.errors.HttpResponseException'> 404: Not Found
Den gewünschten Pfad /_matrix/push/v1/notify
gibt es auch nicht im Ingress. Erstelle ich diesen manuell mit "Ziel" push-local
(laufender Sygnal), gibt Sygnal folgende Fehler zurück:
2024-04-22 12:27:11,046 [1] INFO sygnal.access Handled request: "10.42.5.81" - - [22/Apr/2024:12:27:11 +0000] "POST /_matrix/push/v1/notify HTTP/1.1" 500 - "-" "Synapse/1.94.0"
2024-04-22 12:27:19,057 [1] DEBUG sygnal.http [fe8566ab-3bc3-4159-84c9-0ec83ef6767e] Sending push to pushkin bayern.kita.hub.ios for app ID bayern.kita.hub.ios
2024-04-22 12:27:19,057 [1] ERROR sygnal.http [fe8566ab-3bc3-4159-84c9-0ec83ef6767e] Exception whilst dispatching notification.
Traceback (most recent call last):
File "/home/sygnal/sygnal/sygnal/http.py", line 275, in _handle_dispatch
result = await pushkin.dispatch_notification(notif, d, context)
File "/home/sygnal/sygnal/sygnal/notifications.py", line 217, in dispatch_notification
return await self._dispatch_notification_unlimited(n, device, context)
File "/home/sygnal/sygnal/sygnal/gcmpushkin.py", line 520, in _dispatch_notification_unlimited
data = GcmPushkin._build_data(n, device, self.api_version)
File "/home/sygnal/sygnal/sygnal/gcmpushkin.py", line 673, in _build_data
for attr, value in data["content"].items():
AttributeError: 'NoneType' object has no attribute 'items'
Hier würde Sygnal gerne auf items
in einem Dictionary zugreifen was es nicht gibt.
In der values.yaml
wurden die Push-Notifications folgendermaßen aktiviert:
...
sygnal:
enabled: true
...
apps:
app-id:
type: gcm
api_version: v1
project_id: unsere-app
service_account_file: /service-account.json
fcm_options:
content_available: true
mutable_content: true
...
pusher:
enabled: true
...
Ist das so korrekt konfiguriert bzw. muss noch etwas zusätzlich konfiguriert werden?
Vielen Dank schon einmal im Voraus.