Tolgahan Bora,Expo SDK upgrade iOS lifecycle testing

Before You Upgrade Expo, Test What Happens When iOS Interrupts Your App

An Expo upgrade can compile cleanly and still change what a user experiences after a call, a notification, or a link opened from another app. Expo SDK 58, released October 15, 2026, makes that worth a closer look: its iOS template adopts the scene-based lifecycle required by the iOS 27 SDK. The useful next step is not to guess which screen will break. It is to record how your current binary behaves, run the same interruptions against the upgraded binary, and investigate meaningful differences before release. (expo.dev)

What changed, and who should care?

In SDK 58, Expo prebuild generates SceneDelegate.swift and a scene manifest in Info.plist; the scene delegate creates the window. Expo says it forwards relevant URL, user activity, lifecycle, and quick-action events to ExpoAppDelegate overrides and subscribers. That forwarding is useful, but it does not prove that every custom native integration or application flow behaves correctly. (expo.dev)

Pay particular attention if your app customizes AppDelegate.swift, manages its ios directory by hand, or relies on native modules for authentication, notifications, links, media, or background work. Apple notes that after an app adopts scenes, UIKit no longer calls the listed app-delegate lifecycle methods, even if they remain implemented. Scene callbacks describe a particular scene; application-wide notifications serve a different purpose. (developer.apple.com)

This is a test priority, not a claim that SDK 58 breaks those integrations. Expo has a migration guide for custom native setups; use it alongside the release notes. (expo.dev)

Capture a baseline before changing dependencies

Use the current shipping commit, or a reproducible build from it. Record the commit, Expo and React Native versions, build configuration, iOS version, device model, and relevant feature flags. Keep the test account and server data consistent between runs. If an external service changes during testing, note it: not every difference belongs to the SDK.

Choose two builds for different jobs:

Write expected outcomes in product terms. For example: “After returning from the identity provider, the user sees the intended screen once” is more useful than “AppState became active.” Preserve the baseline results even when they reveal an existing bug; otherwise you may mistake an old issue for a new regression.

Run an interruption matrix

Repeat each applicable scenario before and after the upgrade. Record the steps, observed result, expected result, and whether the difference reproduces.

| Scenario | How to exercise it | What to verify | | --- | --- | --- | | Brief interruption | Open Control Center or trigger a system prompt, then return. | The current task remains usable; timers or media follow the intended policy. | | Background and resume | Switch apps, wait, and return; repeat while a request is in flight. | The screen is coherent, loading states resolve, and resume work does not duplicate a mutation. | | Terminated launch | Save or enter representative state, terminate the app, then launch it again. | The app restores only what the product promises and handles missing transient state safely. | | Link from a cold start | Open a representative app link when the app is not running. | The intended destination and any required authentication flow are handled once. | | Link while running | Open the same link while the app is foregrounded or suspended. | Navigation reaches the intended destination without duplicate routing. | | Notification or auth return | Tap a test notification or complete the external sign-in flow. | The payload or callback reaches the right handler; navigation and session state agree. | | Offline resume | Background the app, disable connectivity, then return. | The user sees a recoverable state; retries do not silently repeat non-idempotent work. |

Use test data rather than real customer payloads. For a payment or order flow, verify the server-side result as well as the screen: a reassuring UI is not evidence that a request ran exactly once.

Cold and warm links deserve separate rows. Apple documents different scene delivery paths for universal links when an app is not running versus when it is running or suspended. That distinction makes a single successful link test insufficient. (developer.apple.com)

Instrument the transition, not just the screen

React Native AppState exposes active, background, and the iOS-specific inactive state. inactive can occur during transitions or interruptions, so do not automatically treat it as a full background session. On the legacy architecture, currentState can initially be null; don't assume an initial value is always available. (reactnative.dev)

For each test run, capture a timestamped sequence of AppState changes, route changes, and relevant operation IDs. If you own native lifecycle code, add separate native callback markers to the internal build. Remove listeners when their owner unmounts, and avoid logging tokens, full link payloads, or personal data.

Compare the observable outcome first, then use event ordering to explain a discrepancy. AppState is an app-level signal; it is not a complete trace of every native scene callback. A changed event sequence is a reason to inspect behavior, not automatically a defect.

Upgrade the native project deliberately

Expo recommends upgrading SDKs one at a time, aligning dependencies, running Expo Doctor, and reading the target release notes. For a move from SDK 57 to 58, the official upgrade guide uses:

npx expo install expo@^58.0.0 --fix
npx expo-doctor@latest

If you are further behind, use the version-specific instructions for each intermediate upgrade. (docs.expo.dev)

For Continuous Native Generation, preserve any manual native changes before regenerating: generated directories are not a safe place to keep untracked customizations. Review config plugins and the resulting native changes. If you maintain ios by hand, do not delete it to follow a CNG instruction; apply the native upgrade changes, install pods, and review the scene migration guide. Rebuild the development client after the SDK change. (expo.dev)

Run the same matrix on the upgraded build. Keep the device and OS fixed for the first comparison. Then add other supported OS versions and device configurations; changing SDK, OS, and device simultaneously makes a regression harder to attribute.

Decide what blocks release

I would block release for a reproducible failure in a critical flow: a lost authentication return, duplicate order submission, inaccessible screen after resume, or incorrect deep-link destination. Capture native logs and a minimal reproduction, then check whether the issue is in app code, a config plugin, a native dependency, or the upgrade itself. A clean type check does not settle that question.

For EAS Update users, also verify the new binary's runtime version and update configuration. A JavaScript update must be compatible with the native runtime it targets; it is not a substitute for shipping a corrected native binary when native code or configuration needs to change. Test update behavior in an appropriate release build, not solely in Expo Go. (docs.expo.dev)

The release decision is a comparison of user-visible behavior against an explicit baseline—not a requirement that every internal callback look identical.

FAQ

Is testing AppState enough for an Expo upgrade?

No. AppState is useful for observing foreground and background transitions, but test the actual user flow and any native callbacks or integrations it relies on.

Should I test both cold and warm deep links?

Yes. Test a link when the app is not running and again when it is running or suspended. The delivery paths can differ, and each should reach the expected destination once. (developer.apple.com)

Can an OTA update repair a scene delegate problem?

Not if the correction requires changing native code or configuration embedded in the binary. A compatible JavaScript-only fix may be possible for other problems, but first identify which layer failed and whether the affected binary can receive the update. (docs.expo.dev)

A practical next step

Pick one critical flow—sign-in, checkout, or a notification-driven screen—and run the matrix against the current binary today. That small baseline gives the upgrade review something concrete to compare, even if the SDK migration happens later.