Files
meshcore-open/lib
Juraj Bednar 7bb9def628 Keep the background service running when the app leaves the screen
flutter_foreground_task's stopWithTask option (9.2 to 11.0) does not wait
for the task to be removed: it registers activity lifecycle callbacks and
stops the service on the first onActivityPaused with no resumed activity.
So the "MeshCore background" service stopped every time the app went to
the background or the screen turned off. Android then cached and froze the
process, the Bluetooth link dropped and the low-memory killer ended the
app a few hours later. Usage stats on a Pixel show FOREGROUND_SERVICE_STOP
in the same second as every ACTIVITY_STOPPED.

Drop the option. android:stopWithTask="true" in the manifest still stops
the service when the app is swiped away, which is what the option was
meant to do.
2026-11-18 14:31:35 +01:00
..
2026-11-15 15:16:18 -07:00