/Practice

Android vs iOS vs React Native reels

Android vs iOS vs React Native1 / 5

Android: pick the tool

1

Sync soon

WorkManager, expedited, unique name

2

Periodic

PeriodicWorkRequest, 15 min minimum

3

Huge user upload

User-initiated data transfer job, API 34+

4

Server changed

FCM data message, then enqueue work

Android: pick the tool
Right after a user edit.
#android
Android vs iOS vs React Native2 / 5

iOS: pick the tool

1

Finish now

beginBackgroundTask, a few seconds

2

Catch up

BGAppRefreshTask, about 30 s

3

Huge files

Background URLSession, one task per part

4

Long user task

BGContinuedProcessingTask, iOS 26+

iOS: pick the tool
Wrap up the write the user just made.
#ios
Android vs iOS vs React Native3 / 5
JavaScript
  • Screens and navigation
  • UI state
  • Observe SQLite
Native
  • WorkManager · BGTask
  • File transfers
  • The sync engine
Never move file bytes through JS.
React Native: who does what
JS may be gone when the OS wakes you.
#react-native
Myth check
iOS check