~/talk

React Native: The dark side of Background tasks

Talkat React Alicante 2018 · on Saturday, 2018-09-15· [react-native]

Concrete examples and code decisions matter: demos include a working music player built with a native media player (Android service / ExoPlayer option) that keeps playing after the app is killed, and a 24‑hour sync implemented with a custom sync adapter on Android plus headless JS to spin up the JS bridge. iOS uses background fetch with its hard limits (≈15‑minute scheduling, ≈30‑second runtime). code is open source and the approaches are tested, not hypothetical.

AI-written summary · about

  1. 0:00React Native: The Dark Side of Background Tasks Ferran Negre
  2. 2:36Why this talk?
  3. 5:48App elements
  4. 6:01React UI
  5. 6:17almost all npm packages you love
  6. 6:33React Native A wrapper for native code ...with a bridge!
  7. 6:58Android Services, Broadcast receivers, Content providers
  8. 7:30iOS Background modes, Touch ID, Face ID...
  9. 8:08Your app in the background
  10. 8:33Android vs iOS It's different!
  11. 9:14The Android way Services
  12. 10:50The iOS way iOS background modes
  13. 11:58Playing music
  14. 12:16react-native-track-player
  15. 13:27await TrackPlayer.setupPlayer(); catch (e) // Error
  16. 17:37react-native-spotify-streamer
  17. 17:53Sync data
  18. 18:35Android Headless JS
  19. 18:47Headless JS Service
  20. 20:44When to start it?
  21. 21:28Network connectivity
  22. 21:55react-native-sync-adapter
  23. 23:40React Native and Native Modules: The Android SyncAdapter
  24. 25:00IOS Headless JS No such concept
  25. 27:21Broadcast Receivers On Android
  26. 28:27Wake up recap!
  27. 29:54There is no magic
  28. 30:16We are mobile developers
  29. 30:59Thank you! @ferranno
~/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.