Since August 31, 2026, Google Play has required new apps and app updates to target Android 16 (API level 36) or higher, according to Google Play Console Help.
Existing apps targeting anything below Android 15 (API level 35) become unavailable to new users on devices running newer versions of Android.
Rules like that make up most of what mobile app best practices really are. They cover architecture, security, interface and release standards, and the point is keeping an iOS or Android app stable and accepted by its store. Google, Apple, W3C and OWASP publish and enforce the ones worth following, and where a measurable limit exists, you can test against it.
Should You Build Native or Cross-Platform?

Native makes sense when the app leans hard on platform-specific APIs or needs the sharpest rendering on each OS. A single team shipping to both stores from one codebase is the usual reason to go cross-platform instead.
Most projects land somewhere in between, so it helps to see how native, hybrid and cross-platform apps differ in practice before you commit to a stack.
| Approach | Pros | Cons |
|---|---|---|
| Native (Swift with SwiftUI, Kotlin with Jetpack Compose) | Full API access, platform-native feel | Two codebases, two skill sets |
| Flutter | One codebase for both UIs | New OS features wait for plugins |
| React Native | Reuses JavaScript and TypeScript skills | Platform features often need native modules |
| Kotlin Multiplatform | Shares business logic, UI stays native | iOS UI is still built separately |
Popularity doesn’t settle it. Stack Overflow’s 2023 survey data, reported through Statista, put Flutter at 46% and React Native at 35%.
A gap that size decides nothing by itself. A direct comparison of Flutter and React Native measured against your team’s skills is a better use of an afternoon.
Teams using the same tools have ended up in very different places. Airbnb took a big bet on React Native in 2016, then announced in 2018 that it would sunset it, citing technical and organizational issues.
Shopify moved its mobile development to React Native in 2020 (The Register, 2020), then reversed course in 2026, announcing a move back to Swift and Kotlin and citing the refactor needed for React Native’s New Architecture and better AI coding tools (InfoQ, September 2026).
Google Docs goes another way and uses Kotlin Multiplatform for shared business logic across Android, iOS and web (Android Developers Blog, May 2024).
Google’s own stance on Kotlin Multiplatform is narrow on purpose. The focus is sharing business logic, the part most agnostic to the user interface.
Cross-platform stacks fall behind when a new OS API ships. The workaround is a native module, which means someone on the team still writes Swift or Kotlin.
Which Architecture Pattern Works Best for a Mobile App?

MVVM with a clean split between a UI layer and a data layer fits most mobile apps. MVI earns its place only when a single screen juggles a lot of state.
Layer Separation
Android’s architecture guide recommends at least two layers, with a third as an option.
The UI layer displays application data on the screen and holds state holders such as ViewModel. Business logic lives in the data layer, which exposes application data through repositories. The optional domain layer wraps complex or reused logic, and the guide says to add it only when needed.
Two rules keep those layers honest. Every data type gets one owner, the single source of truth, and only that owner can modify it.
State flows in one direction, from parent to child, while events flow back the other way. That’s what makes screens easier to debug.
Dependency injection hands a class its collaborators instead of letting it build them. It’s what makes a repository swappable in a unit test, and Hilt handles it on Android. A tiny app gets by with plain constructor injection.
Choosing Between MVVM and MVI
Android’s ViewModel plus one-way data flow is MVVM in practice, and it works the same way in SwiftUI’s state-driven views. It’s the default I’d reach for.
MVI goes one step further and models each screen as a single immutable state plus a stream of events. Worth it for checkout flows or editors with many interdependent fields. Overkill for a settings screen.
Then there’s the heavyweight option. Clean Architecture adds strict dependency rules and a domain layer with use cases.
That structure pays off in large codebases with several teams. In a small app it adds boilerplate, and the Android guide itself says the domain layer is optional because not all apps have those requirements.
Performance and Stability Targets to Hold Your App To

Google’s published limits put the user-perceived crash rate at 1.09% and the ANR rate at 0.47%, and every frame gets 16 ms. Go over the first two and the app loses visibility on Google Play.
- 1.09% is the overall bad behavior threshold for user-perceived crash rate.
- The overall threshold for user-perceived ANR rate sits at 0.47%.
- Per phone model, a rate above 8% may put a warning on your store listing.
- 16 ms per frame is the budget for holding 60 fps.
- Android vitals flags a cold start of 5 seconds as excessive.
All five values come from Android vitals documentation and Play Console Help, current as of November 2026.
Stability Limits
Crashes users are likely to notice, such as one in the foreground, are the ones that count, and the rate is measured against daily active users. Core vitals affect your app’s visibility on Google Play.
The per-device limit is the one teams forget. A healthy global average can hide one low-end model that fails constantly, and that model is exactly where the store warning appears.
Firebase Crashlytics groups crashes by cause. Android vitals adds field data straight from Play, so run both.
Startup, Memory and Battery
On a cold start the app begins from scratch, for example on first launch since boot or after the system killed it. Defer everything the first screen doesn’t need.
An input ANR fires when the app doesn’t respond to a touch within 5 seconds. Slow I/O on the main thread is a common cause, so move it to a repository on the data layer or onto Dispatchers.IO.
Memory usage and bitmap memory usage are both core vitals for mobile apps. Android Studio Profiler and Xcode Instruments show where allocations pile up, and LeakCanary catches leaked Activities on Android.
Excessive partial wake locks are a core vital for all apps, so batch background work instead of holding the CPU awake.
Profile on a three-year-old mid-range phone, not the flagship on your desk.
How to Secure a Mobile App

Secrets go in the platform keystore, and permissions get requested only when a feature needs them. TLS covers all traffic. OWASP’s Mobile Top 10 and MASVS give you the checklist to test against.
The OWASP Mobile Top 10 dates back to 2014, got an update in 2016, and was last revised in 2024. The 2024 list starts with M1 Improper Credential Usage and M2 Inadequate Supply Chain Security, followed by M3 Insecure Authentication/Authorization.
MASVS breaks the requirements into eight control groups: storage, crypto, auth, network, platform, code, resilience and privacy. OWASP pairs it with the MASTG testing guide.
Data Storage and Network Traffic
Android Keystore keeps key material out of the application process, and keys can be bound to secure hardware such as the TEE or a Secure Element. StrongBox offers stronger isolation but is slower and supports fewer algorithms, and Android’s documentation says most apps do not need it.
On iOS, Apple describes the Keychain as a way to “Securely store small chunks of data on behalf of the user.”
Session tokens belong in that keystore-backed storage, never in plain preferences. It’s the practical fix for M1, and it matters most with token-based authentication, where a leaked token is a leaked account.
Certificate pinning adds a second layer for network traffic, and it has a sharp edge. Without a backup key, a CA change forces an app update to restore connectivity.
An expiry date on the pin set softens that. Android’s documentation warns that setting an expiration on pins may enable attackers to bypass them.
Permissions and Privacy
Android says to ask for a permission in context, when the user starts interacting with the feature that needs it. Timing matters because after repeated denials the system dialog stops appearing at all.
If the user says no, degrade gracefully. Disable only the feature that needs the permission and say which one is unavailable and why. Then skip the persistent nagging.
iOS adds its own gate. From iOS 14.5, an app needs the user’s permission through the AppTrackingTransparency framework to track them or access the advertising identifier.
A longer rundown of controls sits in this guide to mobile app security best practices.
Handling Poor Connectivity and Offline Use

Make the local database the source of truth and sync with the server in the background. At a minimum, an offline-first app must be able to read without network access.
The local data source is the canonical source of truth, and the domain and UI layers never talk to the network layer directly. The guide names Room, DataStore and plain files as local sources, and a look at database options for mobile apps helps when the data model grows.
| Write strategy | Best for | Trade-off |
|---|---|---|
| Online-only | Near-real-time actions such as a bank transfer | Fails without a connection |
| Queued | Analytics and logging | Data waits until the app is online |
| Lazy | Data critical to the app | Needs conflict handling |
Strategy names and use cases follow Android’s offline-first guide. Queued writes drain with exponential backoff once the app is back online, while lazy writes go to the local source first and notify the network at the earliest opportunity.
Pull-based sync reads the latest data on demand. That suits brief to intermediate offline stretches but can cause heavy data use. Push-based sync lets the app stay offline indefinitely, though versioning data for conflict resolution is nontrivial.
Last write wins is the common mobile approach to conflicts, with the network source holding the final say. WorkManager handles the deferred reads and writes, and failed syncs retry with exponential backoff.
Batch small calls so the radio wakes once, not five times.
Offline-first adds a sync engine you now have to maintain. If the data only lives on the server, like live prices or a chat room, a cached read layer is enough.
Platform Design Rules for Touch Interfaces

Follow each platform’s own rules for target size, spacing and navigation, and let the layout change with the window. Android and iOS agree on the goal and disagree on the numbers.
| Rule | Android (Material Design) | iOS (Apple guidelines) |
|---|---|---|
| Touch target | 48×48 dp recommended | 44×44 pt default, 28×28 pt minimum |
| Spacing between targets | 8 dp or more | About 12 pt around bezeled controls, 24 pt without a bezel |
| Top-level navigation | Bar, rail or drawer, chosen by window size | Tab bar |
Apple’s own Human Interface Guidelines publish two numbers for iOS controls, a 44×44 pt default and a 28×28 pt floor. Plenty of teams quote one and miss the other.
Android’s touch target guidance explains that an icon can look like 24×24 dp while its padding makes up the full 48×48 dp target. In Compose, the minimumInteractiveComponentSize modifier reserves that 48 dp of layout space.
If one screen design serves both platforms, build it to the 48 dp number. It also clears Apple’s 44 pt default.
Navigation follows window size. Compact windows, such as a standard phone display, use a navigation bar at the bottom. Medium windows get a navigation rail, and expanded windows can use either a rail or a permanent navigation drawer.
Window size classes (compact, medium, expanded, large and extra large) are the breakpoints Android uses for these decisions. The wider Material Design principles sit behind those choices.
iOS users expect a tab bar for top-level destinations and an edge swipe to go back. Don’t override either.
Dark mode doubles the checking. Apple’s accessibility guidance asks you to verify minimum contrast in both light and dark appearances.
Sharing one design across both platforms feels wrong on one of them, usually the one whose back behavior you ignored. Share color tokens and components. Keep navigation native.
Accessibility Requirements Developers Often Skip

Label every interactive element. Hold body text to a 4.5:1 contrast ratio and let it scale to 200 percent. Skipping those is where most accessibility defects come from.
WCAG 1.4.3 sets the contrast minimum at 4.5:1 for normal text and 3:1 for large-scale text, defined as at least 18 point or 14 point bold. Apple’s table for iOS follows the same Level AA values.
On scaling, WCAG 1.4.4 requires text to resize to 200 percent without loss of content or functionality, and Apple’s guidance says to aim for at least 200 percent too. On Android that means sp units, and the Android design guidance says body text should not drop below 12 sp.
TalkBack on Android and VoiceOver on iOS read what you label. With an onClickLabel, TalkBack says “Double tap to open this article” instead of the generic “Double tap to activate.”
Color can’t carry meaning alone either. Apple tells designers to add shapes or icons beside color so people with color blindness can read state changes.
Decorative images need the opposite treatment. Setting contentDescription to null tells the framework the element has no associated actions or state.
Custom components are where this breaks. Material, Compose UI and Foundation APIs ship with built-in semantics that follow their role. A hand-drawn control has none until you add them.
There is also no automatic way for the framework to understand what a graphic shows, so you pass the description yourself.
WCAG 2.2 added a new Level AA criterion, 2.5.8 Target Size (Minimum), so the sizing rules above now have a formal standard behind them as well.
Run Apple’s Accessibility Inspector and Android’s Accessibility Scanner before every release. Espresso and Robolectric can also turn on accessibility checking in automated tests.
What Should You Test, and With Which Tools?

Most tests should be small ones that run on your own machine. A handful should drive the real UI on a device, with some medium integration tests in between. Android’s testing documentation sorts tests by where they run and by how much they cover.
Local tests run on your development machine or a server and are usually small and fast. Instrumented tests run on a physical or emulated device, and they’re usually UI tests that launch the app and interact with it.
On the coverage side, small tests verify a method or class, medium tests check the integration between two or more units, and big tests verify larger parts of the app at once.
The two lines don’t map one to one. Not all unit tests are local, and not all end-to-end tests run on a device.
Start with unit testing for ViewModels and repositories, using fake repositories instead of live network calls. Those tests cost milliseconds and catch most logic errors before a device is involved.
On Android, Espresso handles UI tests for views and Compose testing covers Jetpack Compose screens. Robolectric simulates the framework locally for host-side tests. For iOS UI tests, XCUITest comes built into Xcode.
Flaky UI suites kill test culture faster than anything else. Android’s documentation says an architecture that is not testable produces bigger, slower and more flaky tests.
The fix starts in the architecture, not in retries. Tests that hit live backends fail for reasons unrelated to your code, so people stop trusting them.
Device coverage needs a written list, not a guess. Include the oldest OS version you support, one small-screen phone, one tablet if you ship for tablets, and a low-memory model.
Run the lot on every merge through continuous integration, with the device-heavy UI suites on a nightly schedule if they’re too slow for each commit.
How to Ship and Monitor a Release Safely

Release to a small slice of users first, watch crash and ANR data for a day or two, then widen. Both stores support it, and neither will do the watching for you.
- Build and test in CI, then upload the signed build to a beta channel. Fastlane automates the build, signing and upload steps for both platforms.
- Run the beta. TestFlight allows up to 10,000 external testers, and Google Play has Open and Closed testing tracks.
- Check the store rules before submitting (see below).
- Start a staged rollout at a low percentage.
- Watch crash-free sessions, Android vitals, Crashlytics and the analytics events for your key flows.
- Widen the rollout, or halt it and ship a fix.
On the App Store side, Apple’s review guidelines ask you to test on a device for bugs and stability, and to include demo account info and a live backend if the app has a login. They also state that apps that crash or show obvious technical problems will be rejected.
Phased release on the App Store reaches 1%, 2%, 5%, 10%, 20%, 50% and then 100% of automatic-update users over 7 days. You can pause for a total of 30 days, and anyone can still update manually at any time.
Google Play works differently, and the difference matters. The staged rollout percentage does not increase on its own, so someone has to raise it by hand.
Play also has no rollback button. The documented fix for a bad release is to create and roll out a new release with a fixed app bundle.
Plan for that gap before you need it. A rollback in deployment isn’t available on Play, so put risky features behind feature flagging and switch them off remotely while the fixed build clears review.
When Do These Practices Stop Paying Off?
They stop paying off when applying them costs more than the failure they prevent. Prototypes you plan to throw away are the clearest case. Very small teams and short-lived apps hit it too.
A layered architecture and a full test suite slow down a software prototyping phase whose whole purpose is to be thrown away. The danger is the prototype that ships anyway, which turns into technical debt nobody scheduled.
Staged rollouts and per-device monitoring only work when somebody owns the dashboard. Without an owner, a rollout that never gets raised or halted protects nobody.
Some practices also pull against each other. Native navigation on each platform fights with one shared design for a small team. Aggressive caching works against showing fresh data, and strict security hardening makes it harder for support to debug user reports. A test coverage target can push people into writing tests that check nothing useful.
The field data has limits too. Android vitals only counts issues from certified devices and apps installed from Google Play, and only uses data from users who agreed to share it.
To protect privacy, Google also shows data only when there is enough of it. A small app with few installs can look clean simply because the sample is too small to report.
Apply a practice when the failure it prevents would reach users, and defer it when you’d be the only one to notice the failure. That’s the rule I’d use.
Mobile App Best Practices FAQ
How do mobile app best practices differ from web best practices?
Mobile adds constraints a website rarely meets. Battery drain and unstable connections come with the territory, and the OS controls permissions. Store review also sits in front of every release.
That is why release gating and field monitoring carry more weight on mobile than on the web.
How do you reduce app size?
Ship an Android App Bundle so Google Play delivers only the code and resources each device needs. Then shrink code and compress images before release.
Android vitals also alerts you when an app bundle with at least 10 MB of DEX code has low shrinking, optimization or obfuscation percentages.
Should you test on real devices or emulators?
Use both. Emulators suit fast runs in CI, and real devices expose hardware, memory and vendor quirks.
Apple’s review guidelines ask you to test on-device for bugs and stability before you submit.
How often should you update the target SDK and dependencies?
Upgrade before the store deadline, not after it. Google Play’s current rule of Android 16 (API level 36) for new apps and updates shows the pattern, since the floor rises as new Android versions ship.
Bump libraries in the same pass, so one release carries one migration instead of three.
How should you use push notifications without driving opt-outs?
Ask for permission after the user has seen the value, not at first launch. Android’s guidance is to ask in context, when the user starts to interact with the feature that needs the permission.
Then send only the categories the user chose, and put a mute switch for each one in settings.
Where to Start When a Shipped App Falls Short
Mobile app best practices pay back in the order users and stores feel them. Stability comes first and credentials second. Accessibility follows, and architecture goes last.
Stability leads because Google Play measures it and ties it to visibility, and a crashing build undoes every other fix. Crashes and ANRs on the worst device models are the place to begin.
Security ranks second because a leaked token costs more than a slow screen, and the fix is small. Credential storage and token handling are where to look. A mobile app security checklist turns that pass into a repeatable review.
Accessibility is next, and screen reader labels and contrast are the quick wins.
Architecture refactors come last. They cost the most and users never see them, so following this order means the codebase carries its technical debt for another release cycle or two.
A store deadline overrides the sequence, as of November 2026. When a new target API requirement lands, the upgrade moves to the top of the list.
- Is Notepad++ Safe? Official Download, Updates, CVEs - November 29, 2026
- How to Evaluate an AI Code Reviewer on Your Own Pull Requests - November 29, 2026
- Outsourcing Medical Device Software Securely - November 28, 2026



