~/talk

Native Background Processing with Flutter

Talkat Fluttercon Europe 2024 · 2024-07-03..07-05· [concurrency]
slides:none on file

Shows how a wearable-backed Flutter app keeps syncing off-screen by launching a separate Flutter engine from a native foreground service, communicating over method channels and an engine group cache entry point (backgroundMain). Demonstrates using Dart isolates for heavy JSON decoding, WorkManager/background_fetch for resilient jobs, and a real case uploading multi-GB payloads. Built a native BLE-backed foreground service that worked but initially caused severe battery drain until timers, sockets and DB writes were throttled and lifecycle handling was corrected.

AI-written summary · about

  1. 0:00Introduction
  2. 2:13Background processing challenges
  3. 6:08Use cases
  4. 8:59Dart isolates misconceptions
  5. 11:54Demo overview and native interop
  6. 13:21Foreground service implementation
  7. 17:35Live background processing demo
  8. 19:19Recommended plugins
  9. 20:01Native vs Dart for background tasks
  10. 22:33Android background options
  11. 24:16BLE and foreground service rationale
  12. 25:59iOS background limitations
  13. 27:25iOS background scheduler tricks
  14. 29:09Battery drain fixes
  15. 30:52Android companion pairing
  16. 31:12Final remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.