826e420423
A native foreground service keeps an authenticated websocket to the connected server (handed over by the app on every connect), subscribes with a replay cursor, shows each notification with kind-based channels and grouping, opens pipelines:// links on tap, and clears taps, dismissals and cross-device clears. It starts at boot and app launch, backs off and follows network changes. Settings gains the delivery switch, status, notification and battery-exemption actions, and the server's optional ntfy_enabled toggle.
5 lines
131 B
Dart
5 lines
131 B
Dart
import 'dart:io';
|
|
|
|
/// The real host OS, not the (test-overridable) target platform.
|
|
bool get runsOnAndroid => Platform.isAndroid;
|