Mosmoxmosmox

Mosmox journal

In focus — UX design.

A selection of publications grouped under the UX design tag.

How Error Messages Shape Trust in a Mobile App

How Error Messages Shape Trust in a Mobile App

An error is the moment when the system fails to keep its promise. "Something went wrong" leaves the user alone with uncertainty: was the money charged, was the request saved, should they tap again? A good message, by contrast, explains the state and helps them move forward.

In our projects we've noticed that error moments are exactly when users most often contact support, leave low ratings and uninstall the app. The cause isn't the error itself — failures happen to everyone — but the fact that the person doesn't understand what happened or what to do. Here's how we design error messages so they preserve trust.

What a message should contain

Nielsen's heuristic #9 frames the task as helping users recognise, diagnose and recover from errors. In practice, a good message answers five questions:

  • What happened — in plain words, without jargon: "We couldn't send your order", not "Error 500".
  • Whether data was kept — "Your cart and address are saved".
  • What to do now — a specific action: "Try again", "Change card", "Check connection".
  • Whether to wait — "We'll send it automatically as soon as you're back online".
  • Where to get help if the problem persists — with a request ID support can find in the logs.

Don't show a technical code instead of an explanation. The team's log can contain a stack trace and request ID, but the interface must answer the person's questions. A code can sit in small print beneath the explanation — it helps support but doesn't replace the text.

An error map: from technical cause to copy

To avoid inventing copy from scratch each time, we build an error map together with backend developers. Here's a baseline version.

Technical causeWhat the user seesAction in the UI
No network"No connection. Your changes are saved on the device"automatic retry once the network is back
Timeout"The server is taking longer than usual""Try again", with no loss of input
401 — session expired"Sign in again to continue"re-authentication returning to the same screen
403 — no permission"You don't have access to this section"explanation of how to get access
404 — object not found"This order was deleted or moved"go to the list
409 — conflict"The data changed on another device"show the current version and offer a choice
422 — validation errortext next to the specific fieldfocus on the first invalid field
429 — too many requests"Too many attempts. Try again in 30 seconds"countdown to the next attempt
5xx — server failure"We're having technical issues and are already on it"delayed retry, support contact

For forms, the most important rule is to show the error next to the field, not as a generic banner at the top. We covered this in detail in our article on mobile forms.

Payments and irreversible actions: three states, not two

For a payment, file upload or application submission, distinguishing "success" from "error" isn't enough. You need at least three states: "not sent", "processing" and "completed". The most dangerous scenario is a timeout during payment: the customer doesn't know whether the payment went through, while the server may already have processed it.

  • Use idempotency keys for payment requests: a repeated tap won't create a second charge.
  • Disable the button after the first tap and show the processing status, not just a spinner.
  • After a timeout, ask the server for the operation status before offering "Try again".
  • For irreversible actions, as WCAG criterion 3.3.4 requires, let users review, confirm or cancel the action.

We discussed how to design the action button itself so it honestly reflects state in our article on the primary action button.

Errors are part of the scenario, not an exception

The Gmail Wear OS case study on Android Developers shows the value of measuring real startup and finding bottlenecks: the team replaced an animated spinner with a static image and got a faster start. For error design the lesson is similar — don't hide uncertain states behind an endless spinner. If an operation takes more than a few seconds, show an honest status, and after a reasonable timeout, a clear message and a controlled retry.

Presentation matters too. A transient snackbar is fine for non-critical events ("Couldn't refresh the feed"), but not for data loss or a failed payment: the person may miss it. Critical errors must stay on screen until the user dismisses them, and the screen reader must announce them.

How to write error copy: step by step

  1. List every error the API can return and group them by user action, not by code.
  2. For each group, write copy using the formula: what happened + what was saved + what to do.
  3. Avoid blame: not "You entered the wrong number" but "The number must have 9 digits after +380".
  4. Check copy length in every language: a long translation must not get truncated.
  5. Add the request ID to technical details and make it searchable in logs.
  6. Review the copy together with support: they know what questions customers ask.

How to test errors

Errors rarely make it into the test plan because "everything works in the demo". We add a dedicated pass:

  • offline on every key screen and network loss in the middle of an operation;
  • slow network with timeouts (Network Link Conditioner on iOS, network emulation in Android Studio);
  • double and rapid repeated taps on the submit button;
  • session expiry while filling in a form;
  • long localised error messages and maximum system font size;
  • VoiceOver and TalkBack announcements of errors.

Typical mistakes in error design

  • One generic "Something went wrong" message for every case.
  • Clearing the form after a server error: the person retypes everything and often gives up.
  • An error shown only as a red border with no text — a problem for both accessibility and comprehension.
  • An endless spinner instead of a timeout and an explanation.
  • A "Try again" button that repeats the same action with the same cause of failure, for example while still offline.
  • A jokey tone in critical situations: "Oops! Your money went somewhere" doesn't inspire trust.

Checklist

  1. There is an API error map with copy and actions for each group.
  2. Every message explains what happened, what was saved and what to do.
  3. User input is never lost after an error.
  4. Payments have three states and idempotent requests.
  5. Critical errors don't disappear by themselves and are announced by the screen reader.
  6. Errors are tested offline, on a slow network, with repeated taps and long texts.
  7. Support can find an error by its request ID.

Trust grows when a product behaves predictably even when it can't perform the desired action. A good error message is a continuation of the service, not an admission of defeat. A broader set of accessibility checks, including for errors, is in our article on mobile app accessibility.

Sources: Android Developers: Gmail Wear OS case study; Nielsen Norman Group: 10 Usability Heuristics; Nielsen Norman Group: Error-Message Guidelines; W3C: Understanding SC 3.3.3 Error Suggestion; Apple Human Interface Guidelines: Alerts; Stripe API: Idempotent requests.

Animation in Mobile Interfaces: When It Helps and When It Slows Users Down

Animation in Mobile Interfaces: When It Helps and When It Slows Users Down

Animation can explain a change of state, show the relationship between elements and make the interface's response tangible. But it can also delay an action, eat up the resources of a weak device and cause nausea in people who are sensitive to motion.

In our projects, debates about animation usually sound like "is it pretty or not". A more productive question is: what exactly does this motion explain to the user, and how much time does it take from them? Below are the criteria, numbers and testing routine we use to make animation work for the product rather than against it.

When motion makes sense

Functional animation answers one of four user questions:

  • Where did this come from? A card expands from the list item that was tapped, and the person understands how the screens relate.
  • Did the system hear me? A button reacts to the touch instantly, before the server responds.
  • What's happening now? A progress indicator shows that a request is running and the app hasn't frozen.
  • Did it work? A short completion confirmation removes the need to check the result manually.

If an animation answers none of these questions, it's most likely decorative. Decorative motion isn't forbidden, but it should be short, never block the main action, and switch off or simplify when the system reduce-motion setting is on.

Numbers worth keeping in mind

The classic response-time limits formulated by Jakob Nielsen still hold: about 0.1 s feels instantaneous, up to 1 s keeps the flow of thought uninterrupted, and beyond 10 s the person loses focus on the task. Transition animations live between the first and second limits.

Type of motionApproximate durationComment
Touch feedback (ripple, button state change)start within 100 msmust begin immediately, even if the action is still running
Small changes (switch, checkbox, icon)50–200 msshort tokens in Material 3
In-screen transitions, expanding a card250–400 msmedium tokens in Material 3
Full-screen transitions450–600 mslong tokens; longer only with a strong reason
Single-frame budget16.7 ms at 60 Hz, 8.3 ms at 120 Hzanything that doesn't fit is seen as a stutter

Android documentation distinguishes slow frames (16 to 700 ms), frozen frames (700 ms to 5 s) and ANRs, when the app doesn't respond to input for more than 5 seconds. A heavy animation on a weak device easily pushes a product over these limits. That's why we always test motion on inexpensive devices, not only on the developer's flagship.

Reduced motion and motion sensitivity

For people with vestibular disorders, parallax, full-screen zooms and fast rotations can trigger dizziness and nausea. According to a study by Agrawal and colleagues (Archives of Internal Medicine, 2009) based on the 2001–2004 NHANES national survey, 35.4% of US adults aged 40 and over showed signs of vestibular dysfunction. This is not a niche group.

Both platforms provide a signal you should respond to:

  • iOS: the Reduce Motion setting; in code, UIAccessibility.isReduceMotionEnabled or the accessibilityReduceMotion environment value in SwiftUI.
  • Android: the "Remove animations" setting sets the system animation duration scale to zero; you can check it via ValueAnimator.areAnimatorsEnabled().

Reducing motion doesn't mean removing all change. Replace slides and zooms with a gentle opacity fade, and parallax with a static background. WCAG criterion 2.3.3 (level AAA) explicitly recommends letting users disable motion triggered by interaction, and 2.2.2 requires that any automatic motion lasting longer than 5 seconds can be paused. For the broader context, see our article on mobile app accessibility.

Animation and performance: the Gmail Wear OS case

The clearest public example of what decorative motion costs is the Gmail team's Wear OS case study on Android Developers. While analysing a startup trace in Perfetto, the team saw CPU contention on a watch with two cores. They replaced the animated loading spinner with a single static image and deferred the shimmer state by prolonging the splash screen. That group of changes improved startup latency by 50%. The loading indicator itself was slowing down the very thing it was meant to report on.

On phones the effect is usually less dramatic, but the mechanics are the same: animation on the main thread competes with building the first screen, processing data and responding to touch.

How to test: not just the looks

  1. For every animation in the mock-ups, write down which of the four questions it answers. If none, shorten it or remove it.
  2. Compare the time to complete a key scenario with and without animation. On Android you can temporarily change the animation duration scale in developer options.
  3. Run the scenario on a weak device and capture FrameTimingMetric with Macrobenchmark, or look at Profile GPU Rendering.
  4. Test interruptions: what happens if you press Back in the middle of a transition or tap a button twice quickly?
  5. Turn on Reduce Motion and "Remove animations" and make sure the interface doesn't break and states stay clear.
  6. Test repeat visits: an animation that delights the first time is annoying the twentieth time.

Typical mistakes

  • Blocking animation: the button stays inactive until the transition ends, and a fast user "taps into the void".
  • A splash screen with a logo animating for 2–3 seconds even though the app is ready earlier.
  • Skeletons and shimmer where data arrives in 100 ms: the user sees flicker instead of content.
  • Ignoring reduced motion: parallax and full-screen zooms for everyone without exception.
  • Large Lottie animations on the first screen that increase both build size and startup time.
  • Animations synchronised with network requests that "freeze" when the response is delayed.

Pre-release checklist

  1. Every animation has a functional justification.
  2. Touch feedback starts within 100 ms; transitions fit into 200–400 ms.
  3. No animation blocks the main action.
  4. Reduce Motion on iOS and "Remove animations" on Android are supported.
  5. Automatic motion longer than 5 seconds can be paused.
  6. Key scenarios are checked on a weak device using FrameTimingMetric.
  7. The first screen doesn't run heavy animations before it becomes useful.

The goal of animation is not to show off the team's skill but to help the user understand what happened. If motion makes the wait longer, it works against the product.

Sources: Android Developers: What a great user experience looks like; Android Developers: Gmail Wear OS startup case study; Material Design 3: Easing and duration; Android Developers: Slow rendering; W3C: Understanding SC 2.3.3 Animation from Interactions; Agrawal et al.: Disorders of balance and vestibular function in US adults (2009); Nielsen Norman Group: Response Times — The 3 Important Limits.

Mobile Forms: How to Reduce Data-Entry Errors

Mobile Forms: How to Reduce Data-Entry Errors

A form on a smartphone competes for attention with a small screen, a virtual keyboard, an unstable network and interruptions. The keyboard covers up to half the screen, a finger hits the neighbouring field, a notification breaks the user’s focus. If a form asks for more than the next step requires, errors and abandonment are the predictable result.

In audits we almost always find the same form problems: the wrong keyboard, no autofill, an error shown above the form instead of next to the field, and data lost after a failed request. Each of them takes hours to fix, not weeks. Below is a practical way to work on a form, a table of field settings for iOS and Android, and a pre-release checklist.

Start with the data

For each field, ask: why is it needed now, can the value be taken from the device or earlier steps, can it be filled in later? WCAG 2.2 even has a dedicated success criterion, 3.3.7 Redundant Entry: information the user has already entered within the same process should not be required again — it should be pre-filled or offered for selection.

  • A single “Name” field instead of separate first and last name fields, if you don’t need them split.
  • City and region derived from the postcode or location, with the option to correct them.
  • Shipping address defaulting to the billing address.
  • Optional fields either removed or clearly marked as optional.

Long forms are better split into logical stages with visible progress, but a simple action shouldn’t be broken into many screens. We wrote about reviewing the whole scenario, not just the form, in our piece on shortening the path to the first outcome.

Keyboard and autofill: field settings

The right keyboard type and autofill hints are the cheapest form improvement there is. The system can fill in email, phone, address, a password from the password manager and a one-time code from SMS — but only if the field is described correctly.

FieldiOSAndroidNote
EmailkeyboardType .emailAddress, textContentType .emailAddressKeyboardType.Email, autofill hint emailAddressTurn off auto-capitalisation and autocorrect
Phone.phonePad, textContentType .telephoneNumberKeyboardType.Phone, hint phoneNumberCountry code as a separate picker or prefix
One-time codetextContentType .oneTimeCodeKeyboardType.NumberPassword, SMS User Consent or Retriever APIOne field instead of six separate boxes
Password.password or .newPasswordKeyboardType.Password, hint passwordA “show password” toggle instead of a confirmation field
Amount, quantity.decimalPad or .numberPadKeyboardType.Decimal or NumberRespect the locale’s decimal separator
Address, postcode.fullStreetAddress, .postalCodehints postalAddress, postalCodeDon’t require a format that doesn’t exist in the user’s country

What else reduces errors

  • Formatting as people type without changing the stored value: card numbers in groups of four, phone numbers with spaces.
  • Lenient parsing: accept numbers with spaces, brackets and dashes instead of demanding “digits only”.
  • Choosing instead of typing where there are few options: dates via a picker, delivery type via toggles.
  • A “Next” key on the keyboard that moves to the next field, and “Done” or the form action on the last one.
  • One clear primary action and a proper loading state that prevents double submission.
  • Keeping entered text after a failed request, a lost connection and returning from the background.

Errors: when and how to show them

WCAG success criterion 3.3.1 Error Identification requires errors to be identified and described in text, not just with a red border. In practice this means:

  1. Show the error next to the field, not only at the top of the form.
  2. Explain how to fix it: “Enter 9 digits after +380”, not “Invalid format”.
  3. Validate a field when the user leaves it, not on every keystroke — otherwise people see an error before they have finished typing.
  4. Remove the message as soon as the value becomes valid.
  5. After a submission with errors, move focus to the first problem field and announce it to the screen reader.
  6. Phrase server errors as humanely as client-side ones, and don’t clear the form.

How to test a form

Test the form on a small screen, with a large system font and after returning from the background. On Android font scaling can reach 200%, and on iOS accessibility sizes go even larger — that is when labels overlap fields and the submit button disappears under the keyboard. Quality UX according to Android means not just a nice default state but predictable behaviour when something goes wrong.

  • Fill in the form one-handed on the smallest supported device.
  • Turn on the largest font size and check that every label is readable.
  • Go through the form with VoiceOver and TalkBack: every field has a clear name and errors are announced.
  • Cut the network before submitting and make sure no data is lost.
  • Check autofill from the password manager and one-time codes from SMS.

What to measure

Measure form completion, the number of resubmissions, errors per field and time to a successful result. It helps to log which field triggered a validation error (without the entered values, to respect privacy): this shows where a format is unclear. In our experience, one or two “problem” fields usually account for most of a form’s errors, so that is where fixes should start.

Common mistakes

  • A field to confirm the email or password instead of a way to view what was typed.
  • A placeholder instead of a label: after typing, people forget what the field was.
  • An input mask that blocks pasting a copied value.
  • Clearing the entire form after a server error.
  • A disabled submit button with no explanation of what is missing.

Mobile form checklist

  • Every field is needed right now; the rest has been postponed or removed.
  • Keyboard types and autofill hints are configured for all fields.
  • Errors appear next to the field as text and explain how to fix them.
  • Data survives errors, lost connectivity and backgrounding.
  • The form works with large fonts, a screen reader and one hand.
  • Analytics shows errors per field and resubmissions.

The best optimisation is often not a new design but removing an unnecessary question. And don’t forget to test forms on weaker devices: we described how in our piece on testing on affordable devices.

Sources: Android Developers: App quality and user experience; Android Developers: Autofill; Android Developers: Configure text fields in Compose; Apple Developer: UITextContentType; Apple Human Interface Guidelines: Entering data; WCAG 2.2: Error Identification; WCAG 2.2: Redundant Entry; web.dev: Payment and address form best practices.

Onboarding Without Extra Steps: How Not to Lose Users After Install

Onboarding Without Extra Steps: How Not to Lose Users After Install

Onboarding should help a person start using the product, not make them sit through a presentation. Every screen should answer a specific question: what benefit will I get, what do I need to do, and why is it safe. If a screen answers none of these, it is most likely unnecessary.

In our projects we more often have to shorten onboarding than extend it. The team wants to talk about everything it has built, marketing wants data for segmentation, legal wants every consent up front. The result is a wall of five to seven screens between install and first value. Below is how we choose an onboarding format, build it around the first outcome and check whether it actually works.

Typical reasons people drop off

  • sign-up before the person understands the value;
  • asking for every permission at once;
  • abstract slides instead of a real action;
  • no way to skip an optional step;
  • long loading with no explanation;
  • a questionnaire with a dozen questions whose answers change nothing.

The last one is particularly insidious. “What are you interested in?” looks like personalisation, but if the person then sees the same feed as everyone else, they feel their time was wasted. Every onboarding question should noticeably affect what the user sees next.

Onboarding formats and when they fit

FormatWhen it fitsRisk
Benefits carousel (2–3 slides)A new type of product that needs a brief explanationMost people swipe without reading; irritating without a “Skip” button
Learning by doingThere is a key action that can be completed in 1–2 minutesA long tutorial you cannot exit
Contextual hintsFeatures are revealed gradually during useToo many hints at once cover the interface
Personalisation (1–3 questions)Answers genuinely change the first screenA questionnaire for marketing data collection
Account setupThe product doesn’t work without a profile: banking, healthcare, work toolsDemanding all data at once instead of step by step

In practice we most often combine learning by doing with contextual hints, and keep carousels for products whose very concept needs explaining. Apple’s Human Interface Guidelines recommend keeping onboarding brief, teaching through interaction, postponing non-essential setup and letting people skip the introduction.

Build onboarding around the first outcome

If the app helps people plan, let them create their first plan. If it is a shopping service, show search and a relevant product. If it is a learning app, let them complete a short task. Onboarding ends not on the last slide but at the moment the person gets their first result. We described how to find that result in the data in our piece on the moment of first value.

  1. Describe the first outcome in one sentence: “the user saved their first recipe”, “booked their first class”.
  2. List everything that currently stands between install and that outcome, including system dialogs.
  3. For each step, decide: remove it, move it after the outcome, merge it with another or keep it.
  4. Define the minimum data without which the outcome is impossible. Ask for everything else later, in context.
  5. Add an exit: a “Skip” button, saved progress, a way to return to the tutorial from settings.
  6. Test the flow with people who haven’t seen the product, and on a budget device.

Sign-up, permissions and consent

The App Review Guidelines (section 5.1.1) require that if an app does not include significant account-based features, people should be able to use it without logging in. The same guidelines require that an app which supports account creation must also let people delete their account from within the app. So sign-up should be planned together with account deletion, not as a standalone screen at launch.

The same logic applies to permissions: every request should come at the moment its benefit is obvious. On Android, if a person denies a permission more than once, the system will no longer show the dialog and it can only be granted through settings. So the camera request is better shown when the user taps “Scan”, not on the third onboarding slide. Data-processing consent, on the other hand, must not be hidden or postponed: phrase it briefly and clearly, but show it before any data is collected.

What to test

Compare not only onboarding length but activation, return rates and the quality of the data users provide. Shortening a form can increase completion but worsen recommendations if the team removed important context. That is why you need cohorts and a check on subsequent behaviour.

  • Onboarding completion and drop-off on each screen.
  • The share of people who tapped “Skip”, and their later activation compared with those who went through everything.
  • Time to first outcome — median and 90th percentile.
  • Day-1 and day-7 return for each variant.
  • Data quality: whether the fields that drive personalisation are filled in.

An interesting signal we often see: if people who skipped onboarding activate no worse than those who completed it, the onboarding in its current form adds no value. Test one big change at a time and run the experiment for at least a week to account for different weekday and weekend behaviour.

Common mistakes

  • Onboarding that talks about features instead of letting people use them.
  • The same onboarding for new users and for people who reinstalled the app.
  • No saved progress: after backgrounding, the person starts over.
  • Marketing language that has to be decoded.
  • Personalisation questions whose answers have no effect on the product.

Apple advises building the product page around clear value, an understandable name and a concrete description. The same logic works inside the app: users should not have to decode marketing language to take their first action. Onboarding should continue the promise of the store page, not start a new conversation.

Onboarding checklist

  • The first outcome is defined and onboarding ends exactly there.
  • Every screen answers a question about benefit, action or safety.
  • Sign-up is required only where a feature cannot exist without it.
  • Permissions are requested in context, with an explanation and a way to continue without them.
  • Optional steps can be skipped and progress is saved.
  • Impact is judged by activation and return rates, not completion alone.

The best onboarding can be almost invisible. It gives a brief explanation, helps the person act and leaves deeper learning for the moment the product has already proved useful. We looked at what the very first minute should look like in “The first 60 seconds in an app”.

Sources: Apple Developer: Creating Your Product Page; Apple Human Interface Guidelines: Onboarding; App Store Review Guidelines; Android Developers: Request runtime permissions; Android Developers: What a great user experience looks like.

Journal

Ideas and products