Mosmoxmosmox

Mosmox journal

Signals from the mobile world.

Short reads about mobile products, concepts, new solutions, and figures that help us better see the future of apps.

R8 Keep Rules and DEX Optimization: How Third-Party Libraries Block Google Play's Requirement

R8 Keep Rules and DEX Optimization: How Third-Party Libraries Block Google Play's Requirement

In February 2027 Google Play will start requiring a minimum level of code optimization from large apps and games. We are talking about DEX code: at least 25% optimization, obfuscation and shrinking for every upload to Play Console. It sounds like the app team's own business, but there is a catch: the result depends on more than your code. It is also affected by the keep rules that third-party libraries ship with themselves.

On 17 November 2026 the Android Developers team published a guide for library authors explaining how overly broad rules block optimization in apps. Here is what it means for your product and how to check your dependencies before the deadline.

What Google Play requires

According to the Google Play help page, the new requirement applies from February 2027 and covers all form factors:

  • a minimum of 25% optimization, obfuscation and shrinking for uploads to Play Console;
  • it applies only to apps with more than 10 MB of DEX code and games with more than 50 MB of DEX code; smaller projects are not required to optimize;
  • the numbers for each app bundle are visible in the app bundle explorer in Play Console (Release → Releases overview); builds from CI/CD may differ slightly from the uploaded one;
  • the tool is not prescribed: any shrinker or optimizer works, such as R8, and Google recommends the R8 Configuration Analyzer for tuning.

Google stresses that Play requirements are not optional: failing to meet one "can affect an app's visibility and publishing capabilities" on Google Play. The page does not list separate penalties for DEX optimization specifically.

Why dependencies can block the result

R8 removes unused code, optimizes the rest and obfuscates names. But it can only work within the limits set by keep rules. And you are not the only one writing them: libraries ship consumer keep rules embedded in the AAR or JAR so that R8 does not remove classes the library reaches through reflection or JNI.

The problem is that library authors often play it safe. To keep an SDK from crashing on a removed class, they add a rule for an entire package. A typical example from Google's guide:

-keep public class com.google.android.gms.** { *; }

A rule like this makes R8 keep everything in the package, even if the app uses only a tiny part of it. If you yourself restricted another GMS library to a narrow rule, the SDK's broad rule overrides yours. According to Google, the result is a bloated app, slower startup, more memory use, a bigger download and a higher ANR rate. And the numbers in Play Console reflect the combined impact of the rules from your code and from your libraries.

What Google advises library authors, and what you should check

PracticeThe ideaWhat to check in your project
Narrow rulesDescribe only what the library reaches through reflection; for dynamic access the entry point is enough, and R8 handles the restWhether your dependencies ship rules like com.vendor.**
Codegen instead of reflectionSerialization and dependency injection work better with code generation (Hilt is an example): R8 sees code usage at build timeWhich libraries still rely on reflection
Conditional keep rulesFor example for ad mediation adapters: keep a format only if the matching adapter is includedWhether you pull in ad adapters you do not need
Rules in the library, not in documentationConsumer rules have been supported in AARs and JARs for years; rules in documentation create manual work and leftovers of obsolete rulesWhether your proguard-rules.pro still contains "README recipes" that are no longer needed
JNI targetsSDKs with native code (games, photo and video editors) need rules for every class used through JNIIf you use Unity or Unreal, check the plugins

Google also advises against using keepnames just to get readable stack traces: Firebase Crashlytics, Play Console and Logcat in Android Studio deobfuscate traces from the mapping file on their own, so there is no need to disable obfuscation for that.

How to check your app in one day

  1. Open the numbers in Play Console. In the app bundle explorer look at the DEX size and optimization percentage of the uploaded bundle. If the DEX is under 10 MB (50 MB for a game), the requirement does not affect you.
  2. Run the R8 Configuration Analyzer. It shows optimization, shrinking and obfuscation percentages, and also inefficient keep rules: yours and the consumer rules from libraries.
  3. Find the broadest rules. Look for package patterns with ** and { *; }. The analyze command in Android CLI shows used and unused package-wide keep rules in an AAR or JAR.
  4. Test critical flows in a release build. After every rule change, go through sign-in, payment and the main flow: errors caused by removed classes only show up in an optimized build.
  5. Talk to the library authors. If an SDK ships broad rules, file an issue with the analyzer result. That is better than maintaining your own rules that override the library's: according to Google, such apps then become reluctant to update the library for fear of risk.

It is also worth watching SDK versions in the Google Play SDK Console and uploading the mapping file so you can see deobfuscated traces.

Why it matters for the product

For product teams this is more than technical hygiene. Google links DEX optimization to faster startup and lower memory use, and the Play requirement means optimization becomes a condition of publishing rather than a nice-to-have. If your Android app has not had its R8 configuration reviewed in a long time, schedule an audit before February 2027: it is better to find a blocker calmly than on release day.

Need an R8 configuration audit or help optimizing an Android app? Get in touch: we will look at your build and dependencies and propose a plan.

App Startup Speed: Which Milliseconds Users Actually Feel

App Startup Speed: Which Milliseconds Users Actually Feel

Users don't measure cold start with a stopwatch, but they feel the difference between a ready screen and a splash that seems stuck. Startup time is the first trust check: is it worth waiting for the product to get ready, or is it easier to close it and open a competitor?

In our projects, the conversation about startup speed almost always begins with "it's fast on my phone". So the first step is agreeing on what exactly we measure, on which devices and against which thresholds. Below are the metrics, targets, tools and optimisation sequence we use on Android and iOS.

Three startup moments that are easy to confuse

Measure the time from tapping the icon to three different events. These are fundamentally different moments:

  • First frame (TTID, time to initial display). The system has shown the first frame of the app's UI. Android records this metric automatically, and it's what Android vitals uses.
  • Ready to use (TTFD, time to full display). Primary content has loaded and the person can perform the action they came for. The system can't know this moment on its own: the app must report it via reportFullyDrawn() or, in Compose, via ReportDrawnWhen.
  • Fully loaded. Secondary blocks, images and recommendations have arrived. For the user, this moment usually matters least.

A screen that's drawn quickly but doesn't respond to touch is not a fast experience. So for the product, the key metric is TTFD; TTID is a technical indicator.

Also distinguish startup types. Cold — the process is created from scratch, for example after a phone reboot. Warm — the process is alive, but the activity is recreated. Hot — the app simply returns from the background. Optimise assuming a cold start: that improves the other two as well.

Thresholds and targets

What we measureThreshold or targetSource
Cold start, Android5 s or longer is excessiveAndroid vitals
Warm start, Android2 s or longer is excessiveAndroid vitals
Hot start, Android1.5 s or longer is excessiveAndroid vitals
First frame, iOStarget of about 400 msApple, WWDC 2019 "Optimizing App Launch"
Feels instantaneousabout 0.1 sNielsen Norman Group
Limit of uninterrupted attentionabout 1 sNielsen Norman Group

Vitals thresholds are not a goal but the floor of decency. From our experience, service and e-commerce apps should aim for a cold TTFD under 2 seconds on mid-range devices. That's a studio estimate, not a standard, and it should be calibrated against your own data and audience.

How to measure: tools

  • In the lab on Android: Jetpack Macrobenchmark with StartupTimingMetric gives stable TTID and TTFD on a real device. For deep analysis, a Perfetto trace with the Android App Startups row.
  • In the lab on iOS: the App Launch template in Instruments and XCTApplicationLaunchMetric in UI tests.
  • In the field on Android: Android vitals in Play Console, with comparison against a peer group of similar apps.
  • In the field on iOS: Xcode Organizer shows launch time by version, and MetricKit delivers aggregated metrics from users' devices.

Compare the median and the tails of the distribution — p90 and p95 — not just the average. Users on weak devices can have a completely different experience, and they're the ones most likely to abandon the app. We explained why lab testing on a flagship is misleading in our article on testing on inexpensive devices.

The method: trace, hypothesis, controlled release

In the Gmail Wear OS case study, the team analysed Perfetto traces: main thread state, time in the Runnable state (a sign of CPU contention), DEX file reading, binder transactions and JIT activity. Based on the findings, they made two groups of changes. Replacing the animated spinner with a static image and deferring the shimmer state improved startup latency by 50%. Enabling R8 rewriting of Baseline Profiles added another 20%.

What matters is not the percentage itself — on a two-core watch, removing an animation naturally has a bigger effect than on a phone — but the method: trace first, then a hypothesis, a controlled change and re-measurement. The team specifically recommends automating trace collection and validating every hypothesis with an A/B test.

The business side is well illustrated by the Lyft case from the Android Developers Blog: a 21% reduction in the drivers app's startup time came with a 5% increase in driver sessions.

First optimisation steps

  1. Measure a baseline. Cold TTID and TTFD on 2–3 devices of different classes, median and p90.
  2. Clean up Application.onCreate. Defer secondary SDK initialisation — analytics, chat, ads — until after the first screen or until first use. On Android, the App Startup library and lazy initialisation via Hilt help.
  3. Don't load what you don't need. The first screen should request only the data it displays. Cache the previous session's result and show it immediately.
  4. Get work off the main thread. Disk, network, deserialising large JSON — background only.
  5. Check heavy animations and layout. Animated splash, Lottie on the first screen, deep view hierarchies.
  6. Add Baseline Profiles for key journeys and verify the effect with Macrobenchmark. Don't forget R8 and, for profile rewriting, AGP 8.2 or newer.
  7. Protect the result. Add a startup benchmark to CI and compare every release with the previous one.

Typical mistakes

  • Measuring only TTID and reporting success while the user stares at a skeleton for several more seconds.
  • Testing a debug build: it lacks ART and R8 optimisations, so the numbers are meaningless.
  • Artificially extending the splash screen "for the brand" — users perceive it as slowness.
  • Relying on the average instead of p90.
  • Initialising a dozen SDKs in Application.onCreate "because the docs say so".
  • Optimising without re-measuring: some "improvements" have no effect at all.

Action plan

  1. Define the moment after which the user can actually work, and mark it with reportFullyDrawn().
  2. Set up Macrobenchmark or XCTApplicationLaunchMetric for cold start.
  3. Capture a baseline on a low-end, mid-range and flagship device.
  4. Check field data in Android vitals and Xcode Organizer.
  5. Work through the optimisation list above, one change at a time, re-measuring each.
  6. Add the benchmark to CI and watch for regressions.

Fast startup isn't a race for the smallest number. It's a short path to the first useful action, without the deception of skeleton screens and hidden unreadiness. We wrote about how that path fits into the overall first impression in our article on the first 60 seconds in an app, and about the business effect of speed using Zomato's experience.

Sources: Android Developers: How Gmail Wear OS improved startup; Android Developers: App startup time; Android vitals: App startup time; Apple WWDC 2019: Optimizing App Launch; Android Developers Blog: How a single Android developer improved Lyft's Drivers app startup time by 21% in one month; Nielsen Norman Group: Response Times.

Mobile App Architecture: MVVM, Clean Architecture and Modularisation Without Overkill

Mobile App Architecture: MVVM, Clean Architecture and Modularisation Without Overkill

Mobile app architecture usually fails at one of two extremes. In the first, all the code lives in a 2,000-line ViewController or Activity, and any change to one screen breaks something next door. In the second, a ten-screen MVP gets a "perfect" Clean Architecture with five layers, a use case for every API call and twenty Gradle modules, and the team needs a week to add one form field.

This article explains what MVVM, Clean Architecture and modularisation actually give you, how to size them to your product and team, and which signals tell you it is time to add structure. We lean on the official Android recommendations and modern SwiftUI practice.

What problem architecture solves

Architecture is not about pretty diagrams. It answers practical questions: how much a change costs, how easily it can be tested and how many people can work in parallel without stepping on each other. Mobile adds platform challenges: screens are destroyed and recreated (rotation, memory pressure), the process can be killed in the background, and the network drops mid-request.

So the core principles are the same on iOS and Android:

  • Separation of concerns. The UI renders state and forwards events; business logic and data access live elsewhere.
  • Single source of truth. Every data type has one owner, such as a repository backed by a local database.
  • Unidirectional data flow (UDF). State flows down to the UI, events flow up to the ViewModel. Google recommends this explicitly in its architecture recommendations.
  • UI driven by a state model. A screen is a function of state, not a sequence of imperative calls.

MVVM: the baseline for most apps

MVVM (Model–View–ViewModel) is the de facto standard: on Android it is backed by Jetpack ViewModel and StateFlow, on iOS by SwiftUI with Observation (@Observable) or ObservableObject on older versions.

What a healthy ViewModel looks like

  • Exposes a single screen state object (UiState): data, a loading flag, an error.
  • Accepts UI events: "Retry tapped", "filter changed".
  • Knows nothing about concrete views, contexts or navigation controllers.
  • Delegates data work to repositories rather than calling the API directly.
  • Is covered by unit tests that run without an emulator or simulator.

A typical problem we find in code audits: the ViewModel becomes an 800–1,500-line god object that validates forms, formats dates, caches, talks to the network and handles analytics. That is the same Massive View Controller, just moved into another file. A sign it is time to extract logic: a method longer than a screen, or identical logic copied into two ViewModels.

MVI and TCA as variations

MVI treats state as an immutable object and every change as a reducer over events. On iOS, The Composable Architecture implements a similar idea. These approaches bring predictability and convenient testing of complex screens at the cost of more boilerplate. A sensible strategy is MVVM by default and a reducer approach for screens with complex state logic: multi-step forms, carts, editors.

Clean Architecture: what to keep and what to skip

Robert Martin described Clean Architecture as concentric circles with dependencies pointing inwards: business rules know nothing about frameworks, databases or UI. In mobile practice this usually becomes three layers: presentation, domain and data.

An important detail that often gets missed: the Android guide explicitly marks the domain layer as optional. It is worth introducing when logic is complex or reused by several ViewModels. A use case that merely forwards a repository call adds a file, a test and a level of indirection with no benefit.

LayerContainsWhen you need it
PresentationView, ViewModel, UiState, mapping to screen formatAlways
DomainUse cases, business rules, domain modelsWhen logic is complex or shared across screens
DataRepositories, API clients, database, cache, DTOsAlways, at least as a repository

Signs of over-engineering

  • Three nearly identical models (DTO, Entity, Domain) for every entity with no difference in fields.
  • A use case for every repository method, each containing a single line.
  • Interfaces with exactly one implementation that nobody substitutes, not even in tests.
  • Adding a field to the API requires changes in 7–10 files.

Modularisation: when to split the codebase

A module is a Gradle module on Android or a Swift package / framework on iOS. Modularisation brings faster incremental builds, clear boundaries between teams, code reuse and enforced isolation: a feature module simply cannot see another module's internals. Google covers the approaches in its modularisation guide, and the Now in Android reference app shows them in practice.

But every module means build configuration, a public API, dependencies and maintenance time. Here are guidelines from our experience:

Product sizeTeamRecommended structure
MVP, up to 20 screens1–3 mobile developersOne app module with feature packages; optionally a separate core networking module
Growing product, 20–60 screens3–6 developersapp + core (network, database, design system) + 3–8 feature modules
Large product, 60+ screensseveral teamsFeature modules split into api/impl, module owners, dependency graph checks

How to split well

  1. Start with packages by feature, not by layer. A "checkout" folder with everything inside is far easier to extract than files scattered across "viewmodels" and "repositories".
  2. Extract core first. Networking, database, design system and analytics are needed by every feature and change less often.
  3. Feature modules do not depend on each other. Navigation between them goes through the app module or a dedicated navigation contract.
  4. Watch the graph. Circular dependencies, or a "core" that depends on everything and everything depends on, destroy the benefits.
  5. Measure. Clean and incremental build times before and after; Gradle Build Scans and the build cache on Android, Xcode's build timing summary on iOS.

Cross-platform specifics

Flutter and React Native apply the same principles with their own tools. In Flutter, Riverpod and BLoC are common ViewModel equivalents with UDF; in React Native, stateful hooks, Zustand or Redux Toolkit, and React Query for server state. The most useful split here is between server state (cached API responses) and local UI state. When both live in one global store, you get stale data and unnecessary re-renders.

With Kotlin Multiplatform it makes sense to share the data and domain layers while keeping the UI native or on Compose Multiplatform. That way layer boundaries line up with platform boundaries.

Testability as a measure of architecture

The simplest architecture test is trying to write a unit test for a screen's logic. If you need an emulator, ten mocks or access to private fields, the boundaries are in the wrong place. A realistic test pyramid for a mid-complexity app, from our experience:

LevelWhat we testApproximate share
UnitViewModels, use cases, mappers, validation60–75%
IntegrationRepository + database, API client against a fake server15–25%
UI / end-to-endCritical flows: sign-in, payment, onboarding5–15%

Inject dependencies through constructors (Hilt or Koin on Android, a simple DI container or factories on iOS) so tests can swap them for fakes easily.

Common mistakes

  • Tutorial architecture without adaptation. A big company's sample project structure does not necessarily fit a team of two.
  • Business logic in the UI. A discount calculation inside a Composable or SwiftUI View cannot be properly tested or reused.
  • No single source of truth. User data cached in three places drifts apart after a profile update.
  • Modularisation for its own sake. Thirty modules for fifteen screens slow down both development and builds.
  • Postponed refactoring. Boundaries you did not draw at 20 screens will cost several times more at 80.

Checklist for your project

  1. Every screen has a ViewModel (or equivalent) with one UiState and tests.
  2. Data access goes through repositories; ViewModels never call the API directly.
  3. A domain layer appears only where there is real business logic or reuse.
  4. Code is grouped by feature; core functionality is extracted separately.
  5. Adding a simple API field touches no more than 3–4 files.
  6. Incremental build time is measured and does not creep up unnoticed.
  7. Architecture decisions are briefly recorded as ADRs (Architecture Decision Records) so new developers understand the "why".

Sources: Android: Guide to app architecture; Android: Architecture recommendations; Android: Domain layer; Android: Guide to modularization; Now in Android; Robert C. Martin: The Clean Architecture; Apple: Observation; Apple: Swift packages; The Composable Architecture.

Google Play Requirements Due January 27, 2027: Contacts, Location, Call Logs, Subscriptions

Google Play Requirements Due January 27, 2027: Contacts, Location, Call Logs, Subscriptions

In plain terms: Google Play has updated its rules on personal data and several technical capabilities, and the Policy Deadlines page in Play Console lists January 27, 2027 for part of these changes. If your app touches contacts, precise location, the call log, geofences or discounted subscriptions, this concerns you. Below is each change, what it means in practice and where to start checking.

Three dates to put in your calendar

DateWhat changes
January 27, 2027Contacts, location, READ_CALL_LOG, geofencing in foreground services, subscriptions with ongoing eligibility-based discounts
April 14, 2027The AppFunctions API must comply with Google Play policies
August 25, 2027Local Network and Manage Contacts: restrictions and Play Console declarations

Dates come from the Play Console Help "Policy Deadlines" page. Check it before planning work, since Google may refine the timelines.

1. Contacts: Contact Picker instead of broad access

Apps that do not need broad access to contacts must use the Android Contact Picker. It is a system picker where the user chooses the contacts to share and the app receives only those. It is available from Android 17, needs no permission and collects less data.

A related platform change: apps that target the next Android release will no longer be able to write to contacts directly with WRITE_CONTACTS. Instead you use the ACTION_INSERT, ACTION_EDIT and ACTION_INSERT_OR_EDIT intents, which need no permission. For a small set of apps with broad needs (for example contact managers or background sync with an enterprise account) a special MANAGE_CONTACTS permission arrives, with a declaration in Play Console. This does not affect apps targeting older versions.

What to check: search your code for WRITE_CONTACTS, direct ContactsContract writes and applyBatch, replace user-initiated actions with intents, and decide whether you really need broad access.

2. Location: the location button as the minimum scope

The updated policy names the location button as the recommended minimum scope for precise location. In practice: if your app requests precise location, justify why it is needed continuously and consider a flow where location is requested at the moment of the user's action. We wrote about the consequences of background access in our article on location and background tasks.

3. READ_CALL_LOG: phone-call verification no longer fits

Account verification through a phone call is no longer a permitted use of READ_CALL_LOG. If your sign-in or number confirmation relies on reading the call log, you will need to replace that flow with a different verification method.

4. Geofencing in foreground services

Geofencing has been removed from the approved foreground service use cases. For these scenarios Google points to the Geofence API. If your app keeps a notification-bearing service running only to track geofences, its architecture needs a second look.

5. Subscriptions with eligibility-based discounts

Subscriptions with ongoing eligibility-based discounts (for example student or regional pricing) must clearly disclose the eligibility criteria, the verification process and the price after eligibility ends. Check your paywall, your Play Console listing and the subscription management screen: all of it should be clear before purchase. For monetization models, see also our piece on subscriptions versus one-time purchases.

What comes next: 2027

By April 14, 2027 the AppFunctions API must comply with Google Play policies: deceiving or manipulating AI agents, bypassing security controls or interfering with other apps is prohibited. By August 25, 2027 Local Network access is restricted to apps that need it for core functionality when system pickers are insufficient, and apps targeting Android 17 (API 37+) must submit a declaration in Play Console. The same logic applies to the Manage Contacts permission.

January checklist

  1. List every sensitive permission in your manifest: contacts, precise location, call log, foreground services.
  2. For each, write down which feature it enables and whether narrower access would do.
  3. Replace broad contact access with the Contact Picker and intents.
  4. Review discounted subscriptions: criteria, verification, price after the discount ends.
  5. Update Data safety and your privacy policy, as described in our article on privacy manifests, ATT and Data safety.
  6. Add these checks to your release checklist.

The rule across all of these changes is the same: request the minimum access, explain it to the user, and build sensitive capabilities on system components.

Sources: Play Console Help: Policy Deadlines; Play Console Help: Google Play Policy Update, April 15, 2026; Android Developers Blog: A more reliable way to add and edit contacts on Android.

Compose 1.13, AppState and Navigation 3: What Changes in Android App Architecture

Compose 1.13, AppState and Navigation 3: What Changes in Android App Architecture

Android Dev Summit 2026 brought more than new APIs: it shifted how Google recommends building UI, state and navigation. The upcoming stable Compose 1.13 adds Grid and FlexBox, Navigation 3 1.2 is already stable, and Jetpack AppState in alpha moves Compose's state model into the architecture layer. Here is what to build into a project now and what to simply watch.

What was announced

ComponentStatusWhat it gives you
Jetpack Compose 1.13Upcoming stable releaseGrid and FlexBox, Progressive Blur, Formatted Text, recomposition tracing
BasicTextFieldRewritten (according to Google)Buffer-driven architecture, TextFieldState, no IME race conditions
Navigation 3 1.2StableType-safe deep links, richer Predictive back
Jetpack AppStateAlphaTransform and StateStore: reactive state beyond the UI

Adaptive layouts: Grid and FlexBox

Google calls Compose the standard for all UI on Android and the reasoning is simple: one approach instead of fragmented codebases for phones, foldables, tablets, wearables, cars, XR and Googlebook. In Compose 1.13, built-in adaptive layout support through Grid and FlexBox moves to stable. Together with Navigation 3 and WindowManager, it is the foundation for multi-pane interfaces that rearrange to the window instead of just stretching a phone screen.

If your screens were only ever designed for phones, this is a good moment to revisit them. We covered the practical limits of this approach in our piece on tablet and foldable apps.

Text fields and graphics

Google reports that text editing in Compose is now built on a rewritten BasicTextField with a buffer-driven architecture and TextFieldState. The goal is to remove keyboard (IME) race conditions and support formatted text. For apps with complex forms, chats or editors, it is worth testing separately on real devices and different keyboards, since input bugs are usually the most painful ones.

Compose 1.13 also brings Progressive Blur and Formatted Text, and Google says graphics features such as mesh gradients run without hurting battery or frame rate. Effects are useful, but measure their impact on your own app.

Recomposition tracing: why the UI redraws

Compose 1.13 introduces recomposition tracing. It shows not only which functions recomposed but why, all the way back to the state write that triggered it. Combined with composition tracing in the Android Studio Profiler, it makes unnecessary recompositions easier to find. For coding agents, Google published the jetpack-compose-performance skill, which points them at common performance anti-patterns.

Jetpack AppState: state as part of the architecture

AppState (alpha) brings Compose's snapshot system into the app layer. Transform derives reactive state from State and Flow inputs using automatic read tracking and plain Kotlin control flow. StateStore is a keyed container that shares observable state across activities, background services, widgets and App Functions, optionally persisted through DataStore.

It is an interesting idea for apps where the same state appears on several surfaces: a screen, a widget, a notification, an agent call. But it is alpha, so APIs may change. Our recommendation is to pilot AppState in an isolated module of a non-critical feature rather than rewrite your core with it. For how app layers relate to each other, see our article on MVVM and Clean Architecture.

Navigation 3 1.2: deep links without manual parsing

Navigation 3 works with a back stack that you own. Version 1.2 adds built-in type-safe deep link support: with Kotlin Serialization you can map incoming URIs and intents to strongly typed navigation keys, customize how complex arguments are parsed, and lazily build synthetic back stacks so back navigation feels natural. Google also mentions richer Predictive back handling.

What teams should do

  1. Plan the upgrade to Compose 1.13 once it is stable, and run UI tests and profiling before and after.
  2. Check layouts at different window sizes: folding a foldable, resizing a window or using a tablet must not reset state.
  3. Evaluate Navigation 3 if you are on the previous navigation and plan deep links or multi-pane screens.
  4. Try AppState on an isolated feature and keep alpha APIs off the critical path.
  5. Add Android skills for your agents: Google offers Adaptive, Compose performance, XML to Compose migration and Ink. For choosing between UI approaches, see our comparison of SwiftUI, Compose and classic Views.

Conclusion

The core idea of these updates is that Compose is moving beyond the rendering layer: it becomes the basis for adaptive layouts, text, navigation and state. For new projects, that means designing architecture for multiple form factors from the start instead of adding them at the end.

Sources: Android Developers Blog: Build for every screen with the latest Jetpack Compose updates; Android Developers Blog: Agentic and Flexible: A next era of Android development; Android Developers Blog: What's new in Android developer tools and performance.

What Goes Into a Mobile App Budget: Stages, Roles and Hours

What Goes Into a Mobile App Budget: Stages, Roles and Hours

"How much does an app cost?" without context is like asking how much a house costs. The answer depends on the floor area, the materials and the plot, yet every house estimate is made of the same line items. Mobile apps work the same way: the price is the sum of hours from specific roles at specific stages, plus external costs that people tend to forget.

Below we break the budget down: who works on the project, how many hours each stage usually takes, where the costs outside development hide, and how to read a proposal so you can compare studios fairly. All hour ranges reflect our studio's experience, not an industry standard.

The budget formula

Simplified, a budget looks like this: Σ (role hours × role rate) + uncertainty contingency + external costs + post-release support. Each term moves the total independently, and most differences between proposals come from one team including contingency and support while another does not.

Estimate accuracy depends on the project stage. Steve McConnell described the "cone of uncertainty": at the idea stage an estimate can be off by several times, while after detailed requirements and design the range narrows to tens of percent. That is why an honest early proposal always gives a range, not a single number.

Project roles and their share

A mid-complexity app typically involves seven roles. Their load is uneven: the designer is busiest at the start, QA towards release, while the project manager and tech lead are present throughout.

RoleResponsibilitiesShare of project hours (studio experience)
Business analystRequirements, user flows, acceptance criteria5–8%
UX/UI designerPrototypes, design system, state mockups10–15%
Mobile developersiOS, Android or a cross-platform codebase35–45%
Backend developerAPI, database, integrations, admin panel15–25%
QA engineerTest plan, manual and automated testing12–18%
Project managerPlanning, communication, risk8–12%
DevOps / tech leadCI/CD, infrastructure, architecture, code review3–7%

If QA accounts for 3–5% of a proposal, or is missing altogether, testing is either done by developers (slower and worse) or it lands on you after release in the form of user reviews.

Stages and typical hours

Here is how hours break down for an MVP with 15–25 screens, authentication, a profile, a catalogue or feed, push notifications, one payment integration and a simple admin panel. Ranges are for two platforms.

StageDurationHoursOutput
Discovery2–4 weeks80–200Spec, user flows, prototype, refined estimate
UX/UI design3–6 weeks120–300Mockups for every screen and state, UI kit
Backend and adminin parallel250–600API, database, integrations, control panel
Mobile development8–16 weeks600–1,400 (cross-platform) / 1,000–2,400 (two native)iOS and Android builds
QA and stabilisationin parallel + 2–3 weeks200–450Test cases, regression, reports
Release1–3 weeks30–80Publishing, store listings, monitoring

In total that is roughly 1,300–3,000 hours for a cross-platform MVP and 1,700–4,000 for two native apps. The spread is wide precisely because of the factors below.

What moves the hours most

  • Offline mode and sync. Can double a module's scope because of data conflicts and action queues.
  • Real time. Chat, courier tracking or collaborative editing need separate infrastructure (WebSockets, queues) and harder testing.
  • Number of roles. A customer app plus a separate provider app is effectively two products sharing a backend.
  • Third-party integrations. Especially legacy ERPs or banking APIs without a sandbox: these estimates always carry contingency.
  • Custom animation and components. Every "wow effect" means design, development on two platforms and testing across devices.

Native vs cross-platform

Flutter or React Native let you write most of the code once. In our experience the saving on the mobile part is 25–40% compared with two native teams, not 50%: platform integrations, testing on both operating systems and publishing still happen twice. Design, backend, analytics and management barely depend on the technology choice. What to include in version one without inflating the budget is covered in our article on the mobile app MVP.

Costs outside development

These items never appear in a studio's proposal, but they are in your P&L.

ItemAmount or order of magnitudeNote
Apple Developer ProgramUSD 99 per yearApple; organisations need a D-U-N-S number
Google Play ConsoleUSD 25 one-offGoogle; new personal accounts must run a closed test with 12 testers × 14 days
Store commission15–30% of digital sales15% under Apple’s Small Business Program and on the first USD 1M of revenue on Google Play
Hosting and backend servicestens to hundreds of USD per month for an MVPGrows with audience, media and real-time features
Third-party SDKs0 to hundreds of USD per monthMaps, SMS verification, chat, analytics, crash reporting tiers
Legalone-offPrivacy policy, terms of use, data processing agreements
Marketing and ASOseparate budgetWithout traffic, even a perfect app goes unnoticed

SMS verification is a frequent surprise: in some countries a single message costs several cents, and SMS pumping attacks can run up a bill of thousands of dollars overnight. Put rate limits and protection into the budget from day one.

Post-release support

Release is the halfway point. New iOS and Android versions ship every year, Google Play raises its target API requirement (since 31 August 2026 it is Android 16, API 36, per Android Developers), and third-party SDKs update and drop old versions. A common industry rule of thumb, which our experience confirms: budget 15–25% of the initial development cost per year for maintenance and small improvements. That excludes new features.

  • Adapting to new OS versions and devices: 40–120 hours a year.
  • Dependency updates and security patches: regularly, every month.
  • Crash monitoring and critical fixes: an agreed response SLA.
  • Infrastructure: backups, certificates, scaling.

Engagement models: fixed price, time & materials, dedicated team

ModelBest whenRisk for the client
Fixed priceClear spec, small scope, little uncertaintyThe studio builds a 20–40% buffer into the price; any change goes through a change request
Time & materialsThe product evolves, requirements are refinedNeeds budget control: weekly reports, an hours cap per sprint
Dedicated teamLong-term product, steady backlogYou pay for team capacity; a strong product owner is essential

A hybrid works well in practice: discovery at a fixed price, then development on T&M with a cap per stage. You pay for certainty when it exists and do not overpay for someone else's buffer.

How to compare studio proposals

  1. Ask for a breakdown by role and stage. A single total cannot be compared.
  2. Check that QA, PM and discovery are included. Leaving them out only makes a proposal cheaper on paper.
  3. Clarify assumptions. A good estimate lists them: "we assume the payment provider offers a sandbox", "the admin panel uses an off-the-shelf framework".
  4. Compare the definition of done. Does it include store publishing, analytics, crash reporting, API documentation?
  5. Ask about the warranty period. One to three months of free defect fixing after release is normal practice.
  6. Weigh rate against productivity. A cheaper hour multiplied by twice the hours is more expensive.

Common budgeting mistakes

  • No contingency. Reserve 15–25% for uncertainty even with a detailed spec.
  • The whole budget on version one. If no money is left for iterations based on user data, the MVP loses its purpose.
  • Cutting state design and QA. These are the first items to be cut and the ones that decide your store rating.
  • Ignoring store commission. For a subscription product, 15–30% is part of unit economics, not a rounding error.
  • Comparing rates instead of outcomes. Ask about timelines, warranties and examples of similar work.

Action plan

  1. Define the goals and scope of version one, including a Won't list.
  2. Commission discovery or prepare a spec with non-functional requirements.
  3. Get 2–3 estimates broken down by role, stage and assumptions.
  4. Add external costs: developer accounts, hosting, SDKs, legal, marketing.
  5. Reserve 15–25% contingency and 15–25% per year for support.
  6. Keep 20–30% of the total budget for post-release iterations.

Sources: Apple Developer Program: enrollment; Google Play Console: registration; Apple App Store Small Business Program; Google Play: service fees; Play Console: testing requirements; Android Developers: target API level; Construx: The Cone of Uncertainty.

Dark Mode: Why Adding a Toggle Is Not Enough

Dark Mode: Why Adding a Toggle Is Not Enough

Dark mode is not a colour inversion or a decorative toggle in settings. It has to preserve hierarchy, contrast, readability and clear states across the whole product: from the home screen to the rarely opened account deletion dialog.

System-wide dark mode arrived with iOS 13 and Android 10, and since then users expect apps to adapt automatically. In our projects we regularly see the same picture: dark mode is "added" in a sprint, and then for six months the team fixes invisible borders, "glowing" images and red errors that suddenly became unreadable on a dark background. Here's how to do it once and do it right.

What breaks with a quick inversion

  • Grey text loses contrast. A shade that worked well on white can drop below 4.5:1 on a dark background.
  • Shadows disappear. On a dark surface a shadow is barely visible, so cards blend into the background unless depth is conveyed another way.
  • Borders become too bright or, conversely, vanish entirely.
  • Images glare. Illustrations and photos with white backgrounds look like a flashlight in the middle of the screen.
  • Statuses lose distinction. Saturated red and green on a dark background either "vibrate" or become too dark.
  • Third-party components don't adapt. WebViews, payment SDKs, maps and support chat stay light and break consistency.

Why the same colours don't work on a dark background

Numbers make the strongest case. We calculated the contrast of typical light-theme colours on white and on the #121212 dark surface recommended by Material Design.

ColourOn whiteOn #121212Verdict
#B00020 (dark "error" red)7.33:12.56:1unreadable on dark
#2E7D32 (dark "success" green)5.13:13.65:1fails for normal text
#1976D2 (blue accent)4.6:14.07:1borderline; text needs a lighter tone
#CF6679 (lighter red)—5.2:1suitable for errors in dark mode
#90CAF9 (light blue)—10.71:1a reliable dark-mode accent
White at 60% opacity (secondary text)—7.16:1passes
White at 38% opacity (disabled)—3.57:1acceptable only for inactive states

The takeaway is simple: every accent and status colour needs a separate, usually lighter and less saturated tone for dark mode. Material Design recommends exactly that — using lighter tones of the palette instead of saturated primaries. We covered contrast thresholds in more detail in our guide to large text, contrast and scaling.

Start with roles, not hex values

Dark mode is impossible to maintain if the code is full of hundreds of specific colours. You need a layer of semantic tokens: surface, elevated surface, primary text, secondary text, border, accent, danger, success, warning. Each token has two values — light and dark — and components reference tokens only.

  • iOS provides this out of the box: system colours such as systemBackground, secondarySystemBackground, label and secondaryLabel already adapt to the theme. Custom colours are defined in the Asset Catalog with Any and Dark variants, plus a High Contrast variant.
  • Android uses values-night and drawable-night resources and a DayNight-based theme, and in Jetpack Compose darkColorScheme and lightColorScheme in MaterialTheme.
  • Depth. Instead of shadows, dark mode conveys elevation with a lighter tone: the higher the element, the lighter the surface. Apple also distinguishes base and elevated backgrounds for modal screens.
  • Black or dark grey. Material recommends #121212 instead of pure black: dark grey shows shadows and surface levels, and the extreme contrast of white text on black makes letters look blurry for some people.

Images, illustrations and third-party content

  • Prepare separate variants for illustrations and icons, or use vector assets that take their colours from tokens.
  • Don't invert photos, but you can slightly reduce their brightness or add a subtle border so they don't "glow".
  • Partner logos often exist only in a light version — plan a backing plate for them.
  • For WebView on Android 13+, enable algorithmic darkening or pass the theme to the web page through prefers-color-scheme.
  • Check whether payment, maps and support SDKs support dark mode and how to configure them.

On energy efficiency: a 2021 Purdue University study showed that on OLED screens, switching to dark mode at 100% brightness saves 39–47% power on average, but at typical 30–50% brightness only 3–9%. So dark mode is primarily about comfort and accessibility, not battery life.

How to check quality

  1. Walk through key scenarios in both themes, and switch themes in the middle of a scenario: the app must not lose state or entered data.
  2. Lower screen brightness to the minimum and check that field borders and dividers are visible.
  3. Turn on larger text and Increase Contrast — dark mode needs a high-contrast variant too.
  4. Check contrast for the default, disabled, pressed, focus and error states of each component, not a single screenshot.
  5. Review all images, illustrations and empty states.
  6. Open every screen with third-party content: WebView, payments, maps, chat.
  7. Add screenshot tests for both themes so new components don't break the system.

Typical mistakes

  • Colours hard-coded inside components, bypassing tokens: these are the first to stay white.
  • A toggle only in the app's settings, with no "Match system" option.
  • Pure black backgrounds with bright white text in large blocks.
  • Saturated brand colours without adaptation, which "vibrate" on a dark background.
  • Relying on Android's Force Dark as the final solution: it's a quick start, not design.
  • Testing only the home screen while dialogs, bottom sheets and push-driven screens go unchecked.

Implementation checklist

  1. Create semantic colour tokens and ban hex values inside components.
  2. Pick dark variants for every accent and status colour with at least 4.5:1 contrast for text.
  3. Convey depth through surface tone, not just shadow.
  4. Prepare image variants and backing plates for logos.
  5. Configure dark mode in WebView and third-party SDKs.
  6. Add a "Match system" option and make it the default.
  7. Cover both themes with screenshot tests and a manual pass through key scenarios.

Dark mode is a test of the design system: if the team can't explain a colour's role, it's hard to scale. And the best dark mode doesn't look like a different product — users recognise components, understand statuses and perform the same actions without relearning anything. If the interface has animations, check them too: dark transitions with abrupt brightness jumps are tiring, as we discussed in our article on animation in mobile interfaces.

Sources: Android Developers: What a great user experience looks like; Android Developers: Implement dark theme; Apple Human Interface Guidelines: Dark Mode; Material Design: Dark theme; Purdue University: Dark mode may not save your phone's battery life as much as you think.

Writing a Mobile App Specification: Structure, Examples and Common Gaps

Writing a Mobile App Specification: Structure, Examples and Common Gaps

A mobile app specification is rarely bad as a whole. It usually covers what the founder sees every day: screens, buttons, colours. And it says almost nothing about what actually consumes the budget: error states, roles and permissions, offline behaviour, the admin panel, data migration, App Store and Google Play requirements. That is why two studios can quote three-fold different figures for the same document, and both are technically right.

This article walks through a specification structure that lets a team estimate a project within ±20–30%, rather than "somewhere between three and nine months". You will find a section template, wording examples, a table of common gaps and a checklist to run before sending the document to vendors.

Why write a spec if you work in Agile

The usual objection: "We run Scrum, requirements will change anyway." They will, but a spec is not a contract for every button. It is a shared model of the product that answers three questions: what we are building, for whom, and how we will know a feature is done. Agile removes the illusion that everything can be predicted up front, not the need to agree on boundaries.

In our projects the pattern is consistent: the less is defined at the start, the wider the estimate range and the more clarification happens mid-development, when every open question blocks the designer, the backend and the mobile developers at once.

The international standard ISO/IEC/IEEE 29148 defines what makes a requirement good: unambiguous, verifiable, feasible and traceable. A mobile startup does not need a 200-page standard-compliant document, but every line of the spec should pass those four tests.

Spec structure: nine sections you actually need

This is the structure we recommend for MVPs and mid-complexity apps. Such a document is typically 15–40 pages including user flows, excluding design mockups.

  1. Context and goals. The problem, the audience, the business model and 2–3 success metrics (for example, the share of users who complete a first purchase). Plus an explicit list of what is out of scope for version one.
  2. User roles and permissions. Guest, registered user, premium, moderator, admin. A "role × action" matrix answers half of the backend questions.
  3. Functional requirements. User stories with acceptance criteria, grouped by module (sign-up, catalogue, cart, profile).
  4. User flows and screen map. Transitions between screens, including what happens after a push notification, a deep link or a returning login.
  5. States and edge cases. Empty lists, network errors, denied camera access, expired sessions.
  6. Non-functional requirements. Platforms and minimum OS versions, performance, offline, localisation, accessibility, security.
  7. Integrations. Payments, maps, analytics, CRM, push provider, external APIs: who provides access, whether a sandbox exists, rate limits.
  8. Admin panel and content. Who manages data, moderates and responds to users, and how.
  9. Store and legal requirements. Privacy policy, account deletion, age ratings, subscriptions.

Writing functional requirements that can be estimated

User story plus acceptance criteria

The "As a [role], I want [action], so that [value]" format is useful not for its own sake but because it forces you to name the role and the goal. A good story meets the INVEST criteria: independent, negotiable, valuable, estimable, small and testable. If a story cannot be estimated, it is either too big or too vague.

Attach acceptance criteria to every story in Given / When / Then form. Compare:

Weak: "The user can reset their password."

Strong: "Given the user is on the sign-in screen and has entered an existing e-mail, when they tap 'Forgot password?', then within 1 minute they receive an e-mail with a link valid for 30 minutes; the link opens the app if installed, otherwise a web page; after the password is changed, all other sessions are signed out."

The second version immediately settles deep links, token lifetime and session invalidation: three separate tasks that the first version would have turned into surprises.

MoSCoW prioritisation

Label every requirement Must, Should, Could or Won't (this time). A practical rule: if Must covers more than 60% of the scope, there is no real prioritisation. The Won't list matters just as much: it records what you deliberately dropped and stops those topics from resurfacing every sprint.

Non-functional requirements: where half the budget hides

"The app must be fast and stable" is not a requirement because it cannot be verified. State each non-functional requirement with a number and a way to measure it.

CategoryVague wordingVerifiable wording
PlatformsiOS and AndroidiOS 17+ and Android 9+ (API 28); phones, tablets without a dedicated layout
PerformanceFast launchCold start to the home screen ≤ 2 s on a mid-range reference device
StabilityNo crashesCrash-free users ≥ 99.5%; within Android vitals thresholds (1.09% user-perceived crash rate, 0.47% ANR)
OfflineWorks without internetLast 50 orders and form drafts available offline; sync after reconnect
LocalisationMultiple languagesUK and EN at launch; strings in resources; locale-aware dates and currency
AccessibilityUsable by everyoneDynamic Type, VoiceOver/TalkBack, text contrast per WCAG 2.2 AA (4.5:1)
SecurityData is protectedTokens in Keychain / Android Keystore, TLS 1.2+, MASVS-L1 controls

Google uses the Android vitals thresholds for an app's visibility on Google Play, so they are a product risk rather than a wish. The 4.5:1 contrast ratio for body text comes from WCAG 2.2, and OWASP MASVS is a convenient baseline for security controls.

Store requirements to include from day one

Some requirements are not up to you but still change the scope. If they are missing from the spec, they will appear right before the first release.

  • Account deletion. If users can create an account, Apple requires that they can initiate its deletion inside the app (App Review Guidelines, 5.1.1(v)), and Google Play requires it both in the app and via a web link (Google Play policy). That means a separate flow, screen and backend logic.
  • Third-party sign-in. If you offer Google or Facebook login, check guideline 4.8 on providing an alternative privacy-focused login option.
  • Target API. Since 31 August 2026, new apps and updates on Google Play must target Android 16 (API 36) (Android Developers). This applies to every third-party SDK you ship as well.
  • Privacy manifest. Apple requires a privacy manifest for the app and commonly used third-party SDKs, plus the privacy "nutrition label" in App Store Connect; Google Play has the Data safety section.
  • Closed testing. New personal Google Play developer accounts must run a closed test with at least 12 testers for 14 consecutive days before they can apply for production access (Play Console Help). Put those two weeks in the plan.
  • Digital goods. Subscriptions and feature unlocks generally must be sold through In-App Purchase / Google Play Billing, which affects both unit economics and the backend.

Common spec gaps and what they cost

These are the items we most often add together with the client during discovery. Effort figures are our studio's experience for a mid-complexity app on two platforms; your numbers may differ.

GapWhat is usually missingTypical extra scope
Screen statesLoading, empty, error, partially loaded data+10–20% to design and UI work
Admin panelWho edits content, moderates, sees orders80 to 300+ hours on its own
Roles and permissionsWhat guests see, role changes, multiple accounts+5–15% backend
Push and deep linksWhich events, where a tap leads, signed-out users40–120 hours
Offline and syncData conflicts, action queue, retriesCan double a module's scope
Data migrationMoving users from a legacy system or website24 hours to several weeks
AnalyticsEvent plan, funnels, access16–60 hours plus discipline in every task
LegalConsents, account deletion, age restrictions20–60 hours

Step by step: from idea to spec in 2–4 weeks

  1. Week 1: goals and boundaries. Define the problem, segment, business model and success metrics. Write the Won't list. If the idea is still unproven, start with idea validation.
  2. Weeks 1–2: roles and scenarios. Describe 3–7 key scenarios from first launch to the target action. Sketch a user flow for each, even on paper.
  3. Week 2: stories and criteria. Break scenarios into stories, add acceptance criteria and MoSCoW priorities.
  4. Weeks 2–3: non-functional requirements and integrations. Fill in the table with numbers; list external services and who owns each account.
  5. Week 3: prototype. A clickable Figma wireframe for the key scenarios. Show it to five users: according to Nielsen Norman Group, five sessions uncover most usability problems.
  6. Weeks 3–4: technical review. A developer and a QA engineer go through the document and ask questions. Each question becomes either a spec clarification or an explicit assumption in the estimate.

Typical mistakes

  • Design instead of requirements. Polished mockups without logic: what happens when a payment fails, how many times an SMS code can be re-sent.
  • No document owner. When five people edit the spec without history, nobody knows which version is current. Keep a changelog and version the document.
  • Technical decisions from non-technical authors. "Use MongoDB and microservices" in an MVP spec usually just constrains the team. Describe requirements and leave solutions to the architect unless there is a strong reason.
  • "Etc." and "and so on". Every such phrase is unestimable scope. Replace it with a closed list.
  • Silence about post-release. Who handles support, updates for new OS versions and crash monitoring.

Checklist before sending the spec to vendors

CheckDone when
GoalsProblem, audience and 2–3 measurable success metrics are stated
BoundariesThere is a Won't list for version one
RolesA role × action matrix covers all user types, including admin
StoriesEach has acceptance criteria and a MoSCoW priority
StatesLoading, empty and error states are described for key screens
Non-functionalEach requirement has a number and a verification method
IntegrationsList of services, access owner, sandbox availability
StoresAccount deletion, privacy, IAP, target API, closed testing
GlossaryKey terms are defined and used consistently
VersionVersion number, date, author, changelog

With 8 of 10 items done, you will get comparable estimates from different teams and can discuss approach instead of guessing who meant what. With fewer than half, it is more honest to commission a paid discovery phase: 2–4 weeks of work by an analyst, a designer and a tech lead that produces the spec and the estimate as its output.

Sources: ISO/IEC/IEEE 29148:2018; Apple App Review Guidelines; Google Play: account deletion requirements; Android Developers: target API level; Play Console: testing requirements for new personal accounts; Android vitals; Apple: privacy manifest files; W3C WCAG 2.2; OWASP MASVS; Bill Wake: INVEST; Cucumber: Gherkin reference; NN/g: Why You Only Need to Test with 5 Users.

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.

How to Design Mobile Apps for People with Low Vision

How to Design Mobile Apps for People with Low Vision

People with low vision use apps in very different ways: with screen magnification, system accessibility features, high contrast, colour inversion or a screen reader. The team's job is not to build a separate "simplified" version, but to avoid breaking the core experience when someone turns these settings on.

Low vision is neither blindness nor a single specific condition. Some people see only the centre of an image, others only the periphery; some struggle with blur or heightened light sensitivity. So there's no universal recipe, but there is a set of checks that, in our projects, consistently uncovers most barriers before release.

Who these users are and what they use

According to the WHO, at least 2.2 billion people worldwide have a near or distance vision impairment. The most common causes are uncorrected refractive errors, cataract, glaucoma, age-related macular degeneration and diabetic retinopathy. Among older people, the share of those who need enlarged text grows quickly, which means your "regular" audience also changes over the years.

Both platforms offer a whole set of system tools, and each of them stress-tests your layout in its own way.

TooliOS / AndroidWhat breaks most often
Larger textDynamic Type up to AX5 / font scale up to 200% (Android 14+)truncated labels, fixed heights, buttons pushed off-screen
Enlarging the whole UIDisplay Zoom / "Display size"broken grids, overlapping elements
Screen magnifierZoom / Magnificationthe user misses toasts and banners outside the magnified area
Increased contrastIncrease Contrast / "High contrast text"custom colours with no high-contrast variant
Colour inversionSmart Invert / "Color inversion"photos and videos turn into negatives
Colour filtersColor Filters / "Color correction"statuses that differ only by colour
Screen readerVoiceOver / TalkBackunlabelled icons, illogical focus order

Some of these issues have simple technical fixes. For example, to stop Smart Invert on iOS from turning photos into negatives, set the accessibilityIgnoresInvertColors property on images and video. But most barriers are introduced at the design level, and that's where they are cheapest to remove.

Core barriers to check

  • Fixed widths. Text and buttons must not disappear or get clipped when the font grows while the container width stays the same.
  • Unlabelled icons. An icon needs a text label or at least an accessible name for the screen reader, and must never be the only carrier of meaning.
  • Invisible focus. Focus must be noticeable and logical, especially for people navigating with a keyboard or switch.
  • Errors shown by colour only. A thin red border is easy to miss. You need text next to the field and an icon.
  • Horizontal scrolling. Magnification shouldn't force people to scroll text in two directions. On the web, WCAG 1.4.10 Reflow covers this; for apps the principle is the same: content should reflow into a single column.
  • Text baked into images. Text inside a picture doesn't scale, isn't read aloud and isn't translated.

We covered choosing fonts, contrast and component behaviour under magnification in detail in our guide to large text, contrast and scaling.

Screen magnification: the "keyhole" problem

A person using a magnifier sees only a small part of the screen at a time — sometimes a quarter or less. That changes the rules of composition.

  • Keep related things together. A label and its value, a field and its error, a price and the buy button should sit close to each other, not on opposite edges of the screen.
  • Don't hide important information in transient messages. A standard Android Toast disappears after roughly 2 or 3.5 seconds, and a magnifier user simply won't see it. Show critical statuses persistently until the person dismisses them.
  • Make feedback predictable in location. If a tap changes something in the opposite corner, a magnifier user will conclude that nothing happened.
  • Avoid auto-advancing carousels. Content that moves on its own can't be read piece by piece. Let people stop the motion.

Test real tasks, not individual components

What looks acceptable for a single component in Storybook or Figma can become unusable in a full scenario. So we test tasks end to end.

  1. Pick five scenarios: search, filling in a form, confirming a payment, reading long text, recovering from an error.
  2. Walk through each one at maximum font size, then with the magnifier at 3–5× zoom.
  3. Repeat with Increase Contrast and colour inversion on.
  4. Walk the same scenarios with VoiceOver and TalkBack: many people with low vision combine magnification with speech.
  5. Log every issue as a concrete defect: screen, setting, what exactly is inaccessible, expected behaviour.
  6. Ask at least one person who uses magnification daily to go through one key scenario. We regularly see such a session uncover problems that all internal checks missed.

Android quality guidelines put consistent interactions and support for different devices and screen sizes at the centre. For accessibility, that means scaling and system settings must be considered at the layout architecture level, not patched before release.

Typical mistakes

  • A separate "low-vision mode" instead of supporting system settings: it's rarely discovered and even more rarely kept up to date.
  • Blocking zoom in WebView screens through viewport settings.
  • Ultra-thin fonts and Light weights for body text.
  • Grey on grey for "secondary" information that actually matters: delivery date, plan terms.
  • Test findings phrased as "make it more accessible" with no specifics, so nobody can pick them up.

How to build it into the process

Add accessibility checks at three points: mock-ups, components and feature acceptance. In mock-ups, the designer shows states at maximum font size. In components, the developer guarantees behaviour under magnification and semantics for the screen reader. At acceptance, QA walks the scenario with system accessibility settings on. We collected the general checklist for the whole team in our article on mobile app accessibility.

Checklist

  1. Every screen scrolls and has no fixed-height containers with text.
  2. Related elements sit together; critical statuses don't disappear automatically.
  3. Photos and videos behave correctly under Smart Invert.
  4. Statuses have text and an icon, not just colour.
  5. Every icon has an accessible name.
  6. Five key scenarios have been walked with maximum font size, magnifier, high contrast and a screen reader.
  7. Issues found are logged as concrete defects with reproduction steps.

An accessible product reaches further than the audience that explicitly identifies as disabled. It works better for everyone who enlarges text, is tired at the end of the day, uses the phone one-handed or has temporary vision limits after surgery.

Sources: Android Developers: What a great user experience looks like; WHO: Blindness and vision impairment; Apple Human Interface Guidelines: Accessibility; Android Accessibility Help: Magnification; W3C: Understanding SC 1.4.10 Reflow.

Large Text, Contrast, and Scaling: A Practical Guide to Mobile UI

Large Text, Contrast, and Scaling: A Practical Guide to Mobile UI

A mobile interface has to stay readable beyond the designer's mock-up. A user may enlarge the system font, raise contrast, turn on bold text or a screen reader, or look at the screen in bright sunlight. If the layout falls apart under those conditions, it's a product problem, not the user's personal problem.

This guide collects what we apply on our own projects: how system scaling actually works on iOS and Android, which contrast numbers to check, how to build components that survive 200% text, and what breaks most often.

How system scaling works

On iOS, text size is controlled by Dynamic Type. The user picks one of seven standard sizes, and in the accessibility settings five more enlarged ones (AX1 to AX5). The Body style is 17 pt by default and 53 pt at the largest AX5 size, roughly three times bigger. Separate Bold Text and Increase Contrast settings also change how the interface looks.

On Android, text size is defined in sp units, multiplied by the system font scale. Starting with Android 14, that scale can reach 200%, and scaling is non-linear: small text grows more, while large headings grow more moderately so they don't take over the screen. Separately from the font, the user can change "Display size", which enlarges all interface elements, not just text.

The practical takeaway is simple: you need to check not one but at least three states — default, enlarged and maximum — and combine them with long localised strings.

Typography that scales

The core rule: no fixed text sizes that bypass the system. On iOS, use text styles (body, headline, caption) or UIFontMetrics for custom fonts; in SwiftUI, a custom font can be tied to a style via relativeTo. On Android, specify text sizes only in sp, and in Jetpack Compose use the MaterialTheme type scale.

  • No fixed heights. Cards, buttons and list rows must grow with the text. A minimum height is fine; a maximum height is not.
  • Don't truncate content. The user must see the full product name, the error text and the primary action label. Truncation with an ellipsis is acceptable only for secondary data, and then there should be a way to see the full text.
  • Re-flow the layout. At large sizes, a horizontal "icon — text — value" row should become vertical. SwiftUI offers the dynamicTypeSize.isAccessibilitySize check and the ViewThatFits container for this.
  • Line height. Define line height relative to font size rather than as a fixed number, or lines will overlap at large sizes.
  • Scrolling. Every screen, even a short dialog, must be able to scroll. At maximum font size the "Confirm" button often ends up off-screen.

From our project experience: Ukrainian strings are usually 15–30% longer than English ones, so a layout drawn in English most often breaks during localisation. This is a studio estimate, not a formal norm, but it's always worth building in headroom.

Contrast is not just black and white

WCAG criterion 1.4.3 requires a contrast of at least 4.5:1 for normal text and 3:1 for large text. Criterion 1.4.11 extends the 3:1 requirement to icons, input field borders and visual component states. Here's how that plays out with typical colours.

Colour pairContrastVerdict
#767676 on white4.54:1the lightest grey that passes for normal text
#999999 on white2.85:1fails even for icons and borders
#BDBDBD on white (typical field border)1.88:1the field is nearly invisible in sunlight
#4CAF50 on white ("success" green)2.78:1unsuitable for text, needs a darker shade
#2E7D32 on white5.13:1passes for text
#D32F2F on white ("error" red)4.98:1passes for text
White on #12121218.73:1a solid base for dark theme

Check not only body text but also placeholders, helper text under fields, disabled states, badges, and text on images and banners. Disabled elements are formally exempt from contrast requirements, but if the user can't tell that a button is inactive and why, it's still a UX problem.

Colour must never be the only signal

Colour vision deficiency, mostly red-green, affects about 8% of men and 0.5% of women of Northern European descent. For them, a red and a green field border can look the same. So always duplicate status through another channel: text, an icon, shape or position. A simple test is to switch the phone to greyscale and walk through a key scenario. If the meaning survives, you're on the right track. We described how these principles fit into a broader review in our article on mobile app accessibility.

Step-by-step screen check

  1. Set the maximum system font: AX5 in iOS accessibility settings, the largest font scale on Android. For automation on Android you can use adb shell settings put system font_scale 2.0.
  2. Walk through key scenarios: sign-up, search, checkout, settings. Log truncated text, overlaps and buttons pushed off-screen.
  3. Switch to the longest supported language and repeat.
  4. Turn on Bold Text and Increase Contrast on iOS, and "High contrast text" on Android.
  5. Check the contrast of new colours with a tool: Accessibility Inspector, Accessibility Scanner or a Figma plugin.
  6. Switch on greyscale and make sure statuses are distinguishable without colour.
  7. Check focus, announcements and touch targets: at large font sizes elements shift, and touch areas can overlap.
  8. Add screenshot tests at maximum font size for key components so regressions are caught automatically.

Typical mistakes

  • Mock-ups are checked only at the designer's font size and in one language.
  • A developer "locks" the text size so a card won't break, disabling Dynamic Type for everyone.
  • A light-grey palette for an "airy" look that fails 4.5:1.
  • Input field borders below 3:1: you can't see the field until you tap it.
  • Text over a photo without a scrim: readable on some images, not on others.
  • Unlabelled icons in the bottom navigation that stay tiny at large font sizes because they're set in dp and never scale.

Design system checklist

  1. The type scale is tied to iOS system styles and to sp on Android.
  2. Every text and background colour pair is documented with its contrast ratio.
  3. Every component has a defined behaviour for accessibility font sizes.
  4. Statuses have a text or icon counterpart, not just colour.
  5. Screenshot tests cover default and maximum font sizes.
  6. The Definition of Done includes a check at maximum font size and in the longest language.

Accessible typography rarely requires complex solutions. Most often it needs component-system discipline and a willingness not to sacrifice content for the decorative precision of a mock-up.

Sources: Android Developers: What a great user experience looks like; Android 14: Non-linear font scaling to 200%; Apple Human Interface Guidelines: Typography; W3C: Understanding SC 1.4.3 Contrast (Minimum); W3C: Understanding SC 1.4.11 Non-text Contrast.

Mobile App Accessibility: What a Product Team Should Check

Mobile App Accessibility: What a Product Team Should Check

Mobile app accessibility is not a special mode for a small group of people. It decides whether someone can read the text, tap a control, understand a message and finish a task under any conditions: with enlarged text, with a screen reader, one-handed on a bus or in bright sunlight.

Across our projects we see the same pattern: accessibility problems almost never arrive as a separate "accessibility ticket". They accumulate in components, colours and copy from the very first sprint, and fixing them right before release costs several times more. Below is what a product team can check on its own, with concrete thresholds, tools and an order of work.

Why accessibility is a product issue, not charity

According to the WHO, about 1.3 billion people, or 16% of the world's population, live with significant disability, and at least 2.2 billion have some form of vision impairment. Add situational limitations on top: a broken arm, a child in your arms, noise, glare on the screen, older age. An interface that works for a VoiceOver user usually works better for everyone else as well.

There is also a regulatory dimension. Since 28 June 2025 the European Accessibility Act applies in the EU: accessibility requirements cover, among others, e-commerce, banking services and transport apps sold on the EU market. Conformance is usually assessed against WCAG 2.1/2.2 level AA through the EN 301 549 standard. If your product targets European users, accessibility becomes a legal risk, not just a quality concern.

Minimum thresholds worth knowing by heart

Vague wording like "contrast is sufficient" doesn't survive a review. The team needs numbers that a tool can verify.

What we checkThresholdSource
Contrast of normal textat least 4.5:1WCAG 2.2, criterion 1.4.3 (AA)
Contrast of large text (18 pt and up, or 14 pt bold)at least 3:1WCAG 2.2, 1.4.3
Contrast of icons, field borders, component statesat least 3:1WCAG 2.2, 1.4.11
Touch target44×44 pt on iOS, 48×48 dp on AndroidApple HIG, Android accessibility guidelines
Text resizingup to 200% without loss of content or functionWCAG 2.2, 1.4.4; Android 14 allows font scaling up to 200%
Colour as information carriernever the only meansWCAG 2.2, 1.4.1
Visible focusfocus is always visible and not obscuredWCAG 2.2, 2.4.7 and 2.4.11

Note that the touch target is not the same as the icon size. An icon can be 24×24 dp as long as the invisible touch area around it is 48×48 dp. We covered target sizes and reach zones in more detail in our article on one-handed design.

The baseline checklist

Visual layer

  • Contrast of text, icons and field borders meets the thresholds in the table, including disabled and error states.
  • The interface works with the largest system font: iOS Dynamic Type up to the AX5 size, Android at 200% scale.
  • Status is never conveyed by colour alone: an error has text and an icon, not just a red border.
  • Animations are simplified when Reduce Motion (iOS) or "Remove animations" (Android) is on.

Semantic layer

  • Every interactive element has a meaningful name: not "button" but "Add to cart".
  • The element's role is announced correctly: a button as a button, a switch with its "on" or "off" state.
  • Decorative images are hidden from the screen reader; meaningful ones have a description.
  • Focus order follows reading order, and after a modal closes, focus returns to the element that opened it.

Content layer

  • Errors explain the problem and how to fix it, rather than showing a code.
  • Form fields have persistent labels, not just a placeholder that disappears while typing. More on that in our article on mobile forms.
  • Status changes (saved successfully, network error) are announced by the screen reader even when focus stays where it is.

How to test: a one-sprint routine

Automated checks find part of the problems — contrast, missing labels, small touch targets — but they don't replace real scenarios. That's why we recommend combining both approaches.

  1. Automated pass. On Android, run Accessibility Scanner on key screens and add AccessibilityChecks to your Espresso tests. On iOS, use Accessibility Inspector in Xcode and, since Xcode 15, the performAccessibilityAudit() method in UI tests.
  2. Screen reader. Walk through the three main scenarios with VoiceOver and TalkBack with your eyes closed or the screen curtain on. Log every point where you can't tell what's happening.
  3. Maximum font size. Set the system text size to the maximum and repeat the same scenarios. Look for truncated text, overlapping buttons and screens that don't scroll.
  4. Non-touch control. Check Switch Access on Android and Full Keyboard Access on iOS: can every element be reached, and is it clear where focus currently is?
  5. Physical conditions. Take the phone outside, lower the brightness, turn on greyscale. It's a five-minute test that finds contrast issues better than any mock-up.
  6. Real users. Once a quarter, invite at least two people who use a screen reader or magnification every day. Even one session reshapes backlog priorities.

Typical team mistakes

  • Accessibility at the end of the release. When the check happens a week before publishing, fixes get postponed "for later", and later never comes.
  • Custom components without semantics. A home-made toggle drawn from several views looks great, but for TalkBack it's a set of unnamed elements. Standard platform components get semantics for free.
  • Fixed heights for cards and buttons. This is exactly what breaks the interface with enlarged text: copy gets cut off and the action becomes unreachable.
  • Identical labels for different elements. Ten "More" buttons in a list don't help a screen reader user understand what each one refers to.
  • Trusting automation alone. A scanner won't tell you that the focus order is illogical or that an error message is confusing.

How to build accessibility into the process

The cheapest place for accessibility is the design system. If the button, text field and card already have correct contrast, minimum touch targets, semantic roles and behaviour under large text, every new screen inherits those properties automatically. Pay special attention to the primary action button: it's the element that most often becomes unreachable when text is scaled.

The second place is the Definition of Done. We add three short items: the screen has been walked through with VoiceOver or TalkBack, checked at maximum font size, and any new colours have been checked for contrast. That takes 15–20 minutes per feature but removes most regressions.

The third is design review. Annotate the mock-ups: focus order, screen reader labels, overflow behaviour. A developer shouldn't have to guess what an icon-only button should announce.

Product team checklist

  1. Define 3–5 key scenarios that must be fully accessible.
  2. Record the thresholds from the table above in the design system and developer guidelines.
  3. Add automated checks to CI: AccessibilityChecks for Espresso, performAccessibilityAudit() for XCTest.
  4. Put a manual screen reader and maximum-font check into the Definition of Done.
  5. Keep a dedicated tag for accessibility defects and review them during planning.
  6. Once a quarter, run a session with real users of assistive technologies.
  7. If the product ships to the EU market, verify WCAG 2.2 AA conformance in light of the European Accessibility Act.

Sources: Android Developers: What a great user experience looks like; Android Developers: Make apps more accessible; Apple Human Interface Guidelines: Accessibility; W3C: Web Content Accessibility Guidelines (WCAG) 2.2; WHO: Disability fact sheet; European Commission: European Accessibility Act.

Journal

Ideas and products