skip to content

For a mobile loan-application app, how should restoring the user's place differ after an OS kill, a user swipe-away, and a return hours later with an expired session?

level: middleimportance: should knowfreq 40%

answer

  1. the user's intent decides
  2. invisible kill versus deliberate dismissal
  3. fresh screen, kept draft
  4. sign in first, then resume
  5. time makes restored data stale

basics

~20 s

After an OS kill, restore exactly where the user was. After a swipe-away, start fresh and offer the saved draft. After hours away, still return them to their place, but put sign-in first if the session expired and refresh time-sensitive data.

solid answer

~50 s

The user's intent decides. An **OS kill in the background** is invisible to the user, so they expect to return to step four exactly as they left it: rebuild the route stack and reload the draft. A **swipe-away** is a deliberate dismissal; users expect a fresh start, and saved UI state is not something to rely on across it. So the next launch opens the home screen, but because the draft lives on disk, the app can offer 'continue your application'. A **return after hours** can follow either path, but time has passed: the session may have expired and any rates shown may be stale. So I restore the place, put sign-in in front of it when the session is no longer valid, resume at step four afterwards, and refetch anything time-sensitive before the user acts on it.

go deeper

for a junior

Recall that a user who closes the app expects a fresh start, while one whose app was killed in the background expects to find everything as they left it.

for a middle

Explain the policy table: what survives each way out, why the draft on disk lets a fresh start still offer the user's work, and where sign-in fits.

for a senior

Handle the edges: expired sessions, stale quotes, an app update between kill and relaunch, and an age cap stated as a product choice with its reason.

for a principal

Own the policy across the product: which flows restore, which offer drafts, how long personal drafts are kept, and how that squares with privacy commitments.

## Three ways back into the app Restoration is not one behaviour but a **policy**: given how the user left and how long they were gone, what should they see? In a loan-application app with a long, five-step form, getting it wrong in either direction hurts: losing twenty minutes of typing is bad, and dropping someone who deliberately closed the app back into the middle of step four is confusing. | How the user left | What the user believes | What survives | What the app should show | |---|---|---|---| | **OS kill in the background** | The app was never closed | Saved UI state and disk | Step four, exactly as left | | **Deliberate swipe-away** | They closed the app | Disk; saved UI state should not be counted on | A fresh start, with the draft offered | | **Back after hours** | Either of the above, much later | Disk, maybe saved UI state | The place, behind sign-in if needed, with stale data refreshed | ## OS kill: restore faithfully Both native platforms may end a background process to reclaim memory, without warning and without running shutdown code. The user does not see this happen and does not expect anything to change. Platform guidance on both sides frames restoration as maintaining the illusion that the app was always running. So the app rebuilds the route stack from saved UI state, reloads the draft from disk, and shows step four with the same field focused if it saved that. ## Deliberate dismissal: fresh screen, kept draft When the user swipes the app away in the system's app switcher, force-quits it or reboots the device, they have **permanently navigated away**. One platform's guidance states that users then expect a clean state, and that the saved UI state is discarded with the process; the other's notes that preserved UI state may be discarded at the system's discretion. Either way, saved UI state is not where the draft survives. - The next launch starts at the home screen, not inside the form. - Because the draft is on disk, the home screen can offer **continue your application**, which respects both the fresh start and the user's work. - How long drafts are kept is a product and privacy decision: a loan draft holds personal and financial data, so it should be kept only as long as it is useful and deleted when abandoned. - Exceptions exist where users expect continuity even after closing (one platform's guide cites a browser returning to the last page), and they are product decisions, not defaults. ## Coming back after hours Time changes what is safe to restore, even after an invisible OS kill. 1. **Check the session first.** If the user's session has expired, the restored screen must not appear with data the app can no longer act on. Put sign-in in front, then resume at step four afterwards, which is the same "resume where you were after sign-in" rule the navigation design applies to links. How tokens are refreshed is the authentication design's concern. 2. **Refresh time-sensitive data.** An interest-rate quote or an offer shown on the review step may have expired. Restore the user's inputs from the draft, but refetch anything the server decides. 3. **Check the restored state is still valid.** An app update may have changed the steps. One platform's own guidance shows recording the app version with saved UI state and declining restoration when it does not match. 4. **Consider an age cap.** No platform sets a number, but it is common practice to stop restoring a deep screen after some hours, because the user no longer remembers it, and to land on home with the draft offered instead. ## Submissions are not screens A submission that was in flight is a different matter from a screen: its record lives on disk and is reconciled on every launch, whichever way the user left, because a fresh start must never mean forgetting an application that may already have been sent. ## Common mistakes - Restoring the same way after a swipe-away as after an OS kill. - Throwing away the draft when the session expired, instead of signing in and resuming. - Treating restored quotes and offers as still valid hours later. - Relying on saved UI state to carry anything across a deliberate dismissal.

  • Should the app ever put the user back mid-step after they swiped it away?
    Not silently: that contradicts what a deliberate dismissal means. But persisting the draft is a product decision, and for a long loan form a home-screen entry that says 'continue your application' respects both the fresh start and the user's work. A few products, such as a browser returning to its last page, reasonably choose continuity, and that is decided explicitly, not inherited.
  • How long should the app honour restoration state before landing on home instead?
    No platform sets a number. It is common practice to cap it, restoring a deep screen within a few hours and offering the draft from home after that, because a user returning the next day no longer remembers the step and time-sensitive values on it are likely stale. Keeping the draft itself is a separate, longer policy driven by privacy.

  • A swipe-away and an OS kill should restore the screen the same way.
  • If the screen can be restored, the session must still be valid.
  • An expired session means discarding the draft and restarting the form.
  • Saved UI state lasts indefinitely, so any return restores the same screen.
  • A restored quote is still valid to act on hours later.