iOS app crashing on launch? How to diagnose and fix it
How to find out why an iOS app crashes at startup using crash reports, and the most common causes, from missing permissions descriptions to slow launches and data migrations.
What causes Android apps to freeze and show "isn't responding", how to find ANRs in Play Console and traces, and practical fixes to keep the main thread free.
An ANR (Application Not Responding) happens when an Android app's main thread is blocked too long, for example around five seconds without responding to input. Common causes are disk or network operations on the main thread, heavy computations, slow broadcast receivers, lock contention and blocking calls during startup. Find ANRs in Play Console's Android vitals, read the stack traces and move blocking work to background threads.
When an Android app freezes, users see a dialog saying the app isn't responding, with options to wait or close it. ANRs frustrate users and, if frequent, can affect your app's visibility on Google Play, which uses Android vitals as quality signals.
The main thread, also called the UI thread, handles drawing and user input. If it's blocked:
Then Android may report an ANR.
Look at what the main thread was doing when the ANR occurred. Common patterns:
Reading files, querying databases or writing preferences synchronously blocks the UI.
Fix: use background threads or Kotlin coroutines with appropriate dispatchers, and libraries that perform I/O asynchronously.
Android blocks network calls on the main thread by default, but blocking waits on network results still cause ANRs.
Fix: make calls asynchronous and update the UI when results arrive.
Parsing large data, image processing or complex calculations on the main thread.
Fix: move to background threads; process data in smaller chunks.
Initialising many SDKs or loading data in Application or the first Activity's creation.
Fix: defer non-essential initialisation, use lazy loading and show the first screen quickly. Our guide to app performance optimisation covers start-up speed.
Doing long work in a broadcast receiver's onReceive method.
Fix: hand work off to WorkManager or a background task quickly.
The main thread waiting for a lock held by a background thread.
Fix: avoid sharing locks between the main thread and long-running background work; redesign data access.
Deep layout hierarchies and expensive drawing slow rendering.
Fix: simplify layouts, use efficient lists and avoid unnecessary work in drawing code.
ANRs often affect older or budget devices first. Test on representative hardware with real data volumes.
iOS has a similar concept, where the system terminates apps that block the main thread too long. Our guide to fixing iOS crashes on launch covers that side.
SDKs for analytics, ads or crash reporting can block the main thread during initialisation or callbacks. Check ANR traces for SDK code, update SDKs to their latest versions and initialise non-essential ones lazily or off the main thread.
After releasing fixes, compare ANR rates in Android vitals by app version. Use staged rollouts so you can confirm improvement before reaching all users.
Document causes and fixes for past ANRs, so developers recognise risky patterns in code reviews and avoid repeating them.
Our mobile app development team diagnoses and fixes ANRs and performance issues. Our app development service builds responsive architectures from the start, and our maintenance and support plans include Android vitals monitoring.
Application Not Responding: the app's main thread was blocked too long, so the system shows a dialog.
Google Play uses Android vitals, including ANR rates, as quality signals, so high rates can affect visibility.
Check Android vitals in Google Play Console, use performance tools and enable StrictMode during development.
This guide is general information, not legal, tax or financial advice, and details such as prices, features and rules can change. Product and company names mentioned are trademarks of their respective owners and are used only to identify those products; UK Technology Hub is not affiliated with or endorsed by them.
Tell us about your project and get a free, fixed quote.
Get a free quoteHow to find out why an iOS app crashes at startup using crash reports, and the most common causes, from missing permissions descriptions to slow launches and data migrations.
Why app speed matters, which performance metrics to watch, and practical ways to improve start-up time, scrolling, network use, battery and app size.
A calm, step-by-step guide to diagnosing and fixing a blank white WordPress page, from recovery mode and debug logs to plugins, themes and memory limits.