Adds OpsPushWorker, a WorkManager-based native push client that connects to the centralcloud-ops push endpoints (SSE stream + messages catch-up) instead of relying solely on FCM/ntfy. ## New module - OpsPushWorker — polls /api/push/:topic/messages for catch-up, then opens an SSE stream on /api/push/:topic/stream. Messages are normalized into the existing ntfy Message shape so all existing notification plumbing (channels, DND bypass, actions) works unchanged. ## Changes to existing modules - Application.kt: calls SmsRelayInit.start() on cold boot - RemoteConfigFetcher: parses native_push block from /api/android/config response and schedules/cancels the worker - SmsRelayInit: restarts the worker on cold boot if enabled - SmsRelayPreferences: adds native_push_* persisted config keys Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| debug/res/values | ||
| fdroid/java/com/centralcloud/oncall/firebase | ||
| main | ||
| play/java/com/centralcloud/oncall/firebase | ||