feat: Stay connected, an opt-in service that holds the relays open (notifications, Phase 10)

A specialUse foreground service keeps AppLifecycle.holdConnections true and
activates the default profile when no screen has, so the app's own live
subscriptions deliver within seconds while closed. Off by default, a switch
on the notification settings, started only from the foreground.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-22 12:58:38 +02:00
1 parent c9faf62f09
commit a60f6b937e
5 files changed
+180 -1

No files matched your search

@@ -827,4 +827,8 @@
<string name="background_ios_explanation">While Giza is closed, iOS decides when it may check for messages: sometimes within minutes, sometimes a few times a day, and not at all after Giza is swiped away.</string>
<string name="background_ios_refresh_off">Background App Refresh is off for Giza, so it cannot check for messages while closed. You can turn it on in the Settings app.</string>
<string name="background_desktop_explanation">Giza checks for messages while it is running, minimised or not. Closed, it checks nothing.</string>
<string name="stay_connected">Stay connected</string>
<string name="stay_connected_supporting">Messages arrive within seconds. Android shows a notification for as long as it is on, and the battery runs down faster.</string>
<string name="stay_connected_channel">Connection</string>
<string name="stay_connected_notification">Connected for new messages</string>
</resources>