Empower growth and innovation with the latest Mobile App insights

After shift handover on a shared store tablet, why can the new employee still see the previous shift's customer follow-ups—logout or the shared device itself?

Nov 15, 2026 Read: 37

Bottom line first: After shift handover on a shared store tablet, when a new employee logs in and can still browse the previous shift's customer follow-ups, it is usually not the server sending the wrong data; it is that account state, local storage, and page instances were not cleared at the same time. Based on 2026 mobile delivery experience, shared devices need one more step: first separate 'device public data' from 'account private data'; otherwise, the harder you clear, the more likely you are to clear the store's shared configuration as well.

First distinguish: this is account data crossover, not a list that failed to refresh

Many teams, when they first receive this feedback, ask the user to log out and log back in. If the data is still visible after logging back in, the problem is not in the rendering layer. Login state only answers 'who is logged in now'; it does not answer 'whose traces are still left locally', and swapping a token does not clear the other layer along with it. To judge severity, look at what is exposed: customer names, follow-up records, and order addresses should be handled as data isolation issues; if it is only public product recommendations, it can be scheduled as an experience issue first.

  • High-frequency trigger paths: logging into another account immediately after a shift-change logout; logging in again after an account is kicked offline; a customer logging back in after support logs in on their behalf.
  • Easy-to-miss entry points: switching employee accounts on a shared store device, and switching environments during internal testing.
  • Counterexample: only refreshing the avatar and nickname to the new account is most easily misjudged as 'already switched over'.

Three-layer clearing: do it in order so the work is not wasted

The three layers fail in different ways: account-state failure shows up as APIs reporting not logged in; local-storage failure shows up as old data still visible when offline; page-instance failure shows up as old content flashing at the moment of switching back. Looking at them separately shows which layer needs validation.

  1. Account state: clear the token, user identifier, third-party binding relationships, push alias and badge count, and user ID in analytics. Stop all sync tasks before clearing; otherwise, backend requests come back during clearing and write the old data again.
  2. Local storage: use a per-account local database or add an account field; cover preferences, image and file caches, and WebView cookies and cache directories. An experience-based approach is to put the account identifier in the cache directory and discard the whole directory on switch—this is less likely to miss items than deleting them one by one.
  3. Page instances: return the page stack to the root, clear Tab cached pages, reset singletons and static variables, and unregister subscriptions and observers. This layer is most easily missed because the code does not report an error; the next entry still holds the old objects.

The safe order is: stop sync → clear account state → clear storage → rebuild UI → fetch data again. If you rebuild the UI first and clear storage later, old data can be written back during clearing, which makes the work wasted.

Shared devices need one more layer: separate device data from account data

Store tablets and after-sales shared devices often treat 'store configuration, printers, and common scripts' as device data, and 'customer list, follow-up records, and order drafts' as account data. At shift change, clear only account data and keep device data; otherwise, the new employee has to reconfigure the device on every login. The criterion is simple: should this data disappear after the person changes? Customer information should disappear; store Wi-Fi and printer configuration can remain.

Where it does not apply: single-account utility apps with no account-switching scenario do not need to force layered clearing; mini-program-style pages that only display and do not persist user data can be deprioritized. But for businesses involving orders, addresses, real-name information, and customer follow-up records, the clearing checklist should be written into delivery acceptance, not left until users report issues.

Delivery scene: one rework caused by shift-handover data crossover

A custom project with store accounts had these constraints: a two-week schedule, an old codebase written as single-account from day one, no account field in the local database, and logout that only jumped to the login page. After launch, when staff changed shifts, the new staff saw the previous shift's customer follow-up records, and support feedback concentrated. We added layered clearing following 'stop sync → clear account state → clear storage → rebuild UI', and added an account identifier to cache directories. The rework took about three to four working days and required one hotfix; the cost was clearly greater than adding an account field in the storage layer at the beginning.

By experience range, layered clearing has a typical range of three to eight working days, depending on how many cache write points need to be mapped in the old codebase; clearing only login state takes about half a day to one day; adding full app restart or clear app data after switching takes one to two days. The numbers are only order-of-magnitude references; actual work depends on the project's current state.

Three approaches: which one fits

  • Clear login state only: small change, about half a day to one day; low coverage, suitable for lightweight pages with no local cache, not suitable for projects with customer, order, or address data.
  • Layered clearing: changes concentrated in the middle platform layer, typically three to eight working days; better coverage, at the cost of mapping existing cache write points—in old projects, the mapping itself may take more time than writing the clearing code.
  • Full app restart or clear app data after switching: can be added in one to two days, coverage close to complete; the cost is a harsh experience—users feel kicked out once—and it does not solve device-level residue such as push aliases.

A more practical combination is: make layered clearing the main approach, use 'full app restart' as a fallback switch, triggered on the new account's first login or when the storage structure is detected to be inconsistent with expectations. Multi-account support is not about adding a switch button; it is about writing 'who this data belongs to' clearly at the storage layer.

FAQ

If all cache is cleared at shift change, will every login become slower?

It will be somewhat slower, but usually within an acceptable range. Keep static resources, store configuration, and images unrelated to the account; clear only data bound to the user. The cold-start increase is generally limited.

On a shared store tablet, how should device configuration and customer data be separated?

Judge by 'should it disappear after the person changes': customer list, follow-up records, and order drafts are account data; Wi-Fi, printers, and common scripts are device data—clear only the former at shift change.

A user says they saw someone else's customer information but it cannot be reproduced—what to check first?

First clarify which account they were using and which switching path they took, then use two accounts with clearly different data to walk the same path; at the same time, check API logs for account identifier mismatches.

If built with a cross-platform framework, does the clearing logic need to be written twice?

No. Put clearing actions in the framework layer for unified handling; the native side still needs separate checks for push aliases and WebView cache—frameworks generally do not manage these two.


If you are planning the next release, start with one thing: take two accounts with clearly different data and walk each of the three paths—logout, being kicked offline, and support login on behalf—and record where data is exposed as a checklist. Apps involving customers, orders, and addresses should do this; for single-account utility apps or single-account shared devices, first confirm whether it is needed—that matters more than how detailed the work is. The specific clearing scope still depends on the project's actual storage structure.

Interested in this topic?
10-year tech team — reference proposal within 24 hours
Obtain Proposal
Are you ready?
Then reach out to us!
+86-13370032918
Discover more services, feel free to contact us anytime.
Please fill in your requirements
What services would you like us to provide for you?
Your Budget
ct.
Our WeChat
Professional technical solutions
Phone
+86-13370032918 (Manager Jin)
The phone is busy or unavailable; feel free to add me on WeChat.
E-mail
349077570@qq.com
Submitted successfully
Thank you for your trust. We will contact you soon!
Recommended projects for you