Files
Jonas Acker 6df7591a43 iOS and macOS: stay reachable for the trainer app across backgrounding, suspension and sleep
iOS
- The keep-alive now follows the network servers themselves (waiting for a
  client and connected), so the per-method calls are gone.
- After a suspension the listeners are bound again and the advertisement is
  published again. A standstill of the process is the trigger; returning to
  the foreground also re-checks the advertisement and its address.
- The dns_sd bridge reports a lost registration and a changed network path
  to the Dart side, and no longer moves the host record alone when the
  address sits on another interface.
- Wi-Fi trainer hostnames resolve through the system resolver; the in-app
  multicast query is not allowed there and logged an "App crashed" entry
  per attempt. The query socket has an error handler on every platform.

macOS
- The responder is bound again after the Mac slept.

Both
- Home: a step says when BikeControl's own advertisement cannot be found
  on the network even after publishing it again.
- Network check: the live test is inconclusive, not failed, while
  BikeControl browses the network itself and the trainer app may run on
  the same device; an app whose controller method is switched off is
  checked against the trainer bridge it uses instead.
- Diagnostics: recent TCP connections (who dialled, and whether they hung
  up before the first byte), lifecycle and recovery state, and the age of
  the stored network check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:00:50 +01:00
..
2026-06-10 15:19:35 +02:00
2025-12-14 19:54:41 +01:00
2026-10-08 22:07:37 +02:00