Background Tasks in React Native 2026: What Actually Runs on iOS and Android
Background execution is where cross-platform promises go to die. Here's what actually runs on iOS 18+ and Android 15+, what Expo gives you, and when to drop into native.
Every mobile project eventually hits the same wall: "can the app sync / upload / refresh when it's closed?" The honest answer in 2026 is still sort of, sometimes, and never as often as you'd like. This is what we've learned shipping React Native and Expo apps that actually need to do work in the background.
Why background work is the hardest cross-platform problem
UI code ports well. Networking ports well. Background execution does not, because it isn't really "code" — it's a negotiation with two very different operating systems about battery, user trust, and app lifecycle.
iOS treats background execution as a privilege the system grants based on usage patterns. Android treats it as a privilege the user grants, then the OEM revokes silently (hi, Xiaomi). React Native sits on top of both and pretends the abstraction is clean. It isn't.
Before you pick a library, decide which of these you actually need:
- Deferred work — "finish this upload eventually, even if the user swipes away."
- Periodic work — "check the server every ~15 minutes while the app isn't open."
- Event-driven work — "when a push arrives, process it silently."
- Long-running work — "keep recording location / audio for the next hour."
These four map to completely different APIs on each platform. Treating them as one problem is where projects go sideways.
What the platforms actually give you in 2026
iOS 18+
Apple's primitives haven't changed much, but the enforcement has tightened. The useful ones:
BGAppRefreshTask— short, opportunistic refreshes. Budget is usually under 30 seconds, scheduled by the system based on how often the user opens the app.BGProcessingTask— longer work (several minutes), typically when the device is charging and on Wi‑Fi.- Silent push (
content-available: 1) — wakes the app briefly to process a payload. Rate-limited aggressively; APNs will throttle you if you abuse it. - Background URLSession — the only reliable way to finish uploads/downloads after the app is suspended.
What does not work: assuming your BGAppRefreshTask will run on any schedule you choose. iOS decides. If the user force-quits the app from the app switcher, background refresh stops entirely until they open it again.
Android 15+
Android is more generous and more chaotic.
- WorkManager — the official answer for deferrable, guaranteed work. Handles constraints (network, charging), retries, and survives reboots.
- Foreground services — required for anything long-running or user-visible (location, media, uploads over ~10 minutes). Android 14 tightened the allowed types; 15 enforces them harder.
- Expedited jobs — WorkManager's "I need this soon" tier, with a daily quota.
- Headless JS — React Native's trick for running JS without a UI, usually triggered by WorkManager or a broadcast receiver.
Then there's the OEM reality: Chinese manufacturers kill background work aggressively unless the user whitelists your app. There is no API to fix this. You detect it and ask the user nicely.
The React Native and Expo landscape
The libraries most teams reach for in 2026:
expo-background-task— the successor toexpo-background-fetch, built onBGTaskScheduler(iOS) and WorkManager (Android). Good for periodic, short work. Works in managed Expo projects.expo-task-manager— the registration layer underneath, also used by location tracking.expo-notifications— silent push handling, with the usual iOS caveats.react-native-background-fetch(Transistorsoft) — more configurable, battle-tested, but a bare workflow dependency.react-native-background-actions— mostly an Android foreground service wrapper; iOS support is thin.- Custom native modules — when you need background URLSession on iOS or a specific WorkManager configuration on Android.
Our default now is expo-background-task for the 80% case and a thin native module when we need the other 20%.
A concrete example: periodic sync every ~15 minutes
Here's a minimal setup with Expo that registers a task and handles both platforms. The ~15 minute figure is the minimum interval you can request — actual execution is at the OS's discretion.
import * as TaskManager from 'expo-task-manager';
import * as BackgroundTask from 'expo-background-task';
const SYNC_TASK = 'app.sync.background';
TaskManager.defineTask(SYNC_TASK, async () => {
try {
const since = await getLastSyncCursor();
const changes = await fetchChangesSince(since);
await applyChanges(changes);
await setLastSyncCursor(changes.cursor);
return BackgroundTask.BackgroundTaskResult.Success;
} catch (err) {
// Don't throw — the OS will back off your task if you do.
reportError(err);
return BackgroundTask.BackgroundTaskResult.Failed;
}
});
export async function registerBackgroundSync() {
const status = await BackgroundTask.getStatusAsync();
if (status !== BackgroundTask.BackgroundTaskStatus.Available) {
return;
}
await BackgroundTask.registerTaskAsync(SYNC_TASK, {
minimumInterval: 15 * 60, // seconds; iOS treats this as a hint
});
}
Things we learned the hard way with this pattern:
- Keep the task under 25 seconds of wall time on iOS. The system will kill it and your app's background budget shrinks.
- Don't rely on the interval. On iOS it might run twice a day. On a stock Pixel, every 15–30 minutes. On a OnePlus with aggressive battery saver, never.
- Make the task idempotent. It will occasionally run twice in quick succession, especially after the device unlocks.
- Log executions to local storage, not just Sentry. You need to prove to QA that the task actually ran.
When silent push is the better answer
If your work is "when the server has news, do something," silent push is almost always a better fit than polling. You get near-real-time wake-ups without burning battery on empty checks. The catch: iOS will throttle or drop silent pushes if the user rarely opens the app, and you get zero visibility into whether APNs delivered them.
Our rule: if the work must happen within minutes, use silent push and a periodic background task as a safety net. Belt and braces.
The war story: uploads that "finished" but didn't
On a recent build we had a photo-heavy app where users would snap 20 pictures, tap Upload, and lock the phone. On Android, our foreground service chugged along and finished. On iOS, uploads would mysteriously stop at image 3 or 4.
The bug: we were using fetch from the JS thread inside a background task. When iOS suspended the app, the JS runtime paused mid-request, the socket timed out, and on resume we treated the partial upload as a failure.
The fix was to stop pretending JS can own long uploads on iOS. We wrote a small native module around URLSession with background configuration, handed it the file paths, and let the OS manage the transfer. JS just subscribed to progress events when the app was foregrounded. Upload reliability on iOS went from embarrassing to boring, which is the goal.
The lesson: for anything over ~30 seconds on iOS, your JS runtime is the wrong place to be. Hand the work to a system API and listen for the result.
Testing background behaviour without losing your mind
Two tools we actually use:
- Xcode's "Simulate Background Fetch" under the Debug menu. It fires your
BGAppRefreshTaskon demand. Pair it withe -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"your.task.id"]in the LLDB console forBGProcessingTask. - adb for Android:
# Force WorkManager to run your worker now
adb shell cmd jobscheduler run -f com.yourapp.package 999
# Check what's scheduled
adb shell dumpsys jobscheduler | grep com.yourapp.package
Build a debug screen that lists registered tasks, last execution time, and last result. Future-you (and QA) will thank present-you.
Battery, review, and the trust budget
Two things to keep in mind before you ship:
- App Store review will reject background modes you can't justify. If your Info.plist declares
locationbut your app doesn't visibly use background location, expect a rejection. Only enable the modes you'll defend in writing. - Android's battery optimisation prompt is tempting to show on first launch. Don't. Show it contextually — "your sync paused because Android stopped our background work, tap here to allow it" — after the user has felt the pain. Conversion rates and app ratings are both better that way.
Where we'd start
If you're adding background work to an existing React Native app in 2026, the sequence we'd follow:
- Write down the four categories above and tag each background requirement. Don't skip this.
- Start with
expo-background-taskand silent push. Ship it. Instrument execution counts per platform. - After two weeks of real-user data, decide whether you actually need a native module. Most teams don't.
- For uploads and downloads on iOS, go straight to a native
URLSessionmodule. Don't try to make JS do it. - Add a visible "last synced" timestamp in the UI. It's the cheapest trust signal you can ship, and it tells users (and your support team) exactly what the background system is doing.
If you want a second pair of eyes on a background architecture that's misbehaving, our mobile team has debugged enough of these to recognise the shape of the problem quickly.
Want a team like ours?
72Technologies builds production software for the kind of teams who actually read this blog.
Start a projectKeep reading
App Store Review Rejections in 2026: The React Native Checklist We Run Before Every Submission
A pre-submission checklist built from a decade of App Store and Play Store rejections — tuned for React Native and Expo apps shipping in 2026.
Push Notifications in React Native 2026: Expo, FCM HTTP v1, and the APNs Token Trap
A field guide to shipping push in React Native in 2026: Expo Notifications vs bare FCM/APNs, the HTTP v1 migration, token rotation gotchas, and why your silent pushes keep disappearing on iOS.
EAS Update in 2026: Shipping OTA Fixes Without Breaking the App Store Rules
A field guide to running OTA updates with Expo EAS Update in 2026 — channels, rollouts, runtime version pinning, and the Apple guideline that quietly kills careless teams.
