Skip to content
RED SAGSkills
easyMobile App Developer interview question

How do you handle network calls and errors in a mobile app?

What the interviewer wants to hear

  • Run calls off the main thread with async/await or coroutines
  • Show loading, success, empty and error states
  • Handle no network, timeouts and server errors differently
  • Retry with backoff where safe; let the user retry
  • Cache data so the app is useful offline

Model answer

I always run network calls off the main thread, using coroutines with Retrofit or Ktor on Android, async/await with URLSession on iOS, or async functions in Flutter and React Native. Each screen has clear UI states: loading, success, empty and error. I treat errors differently: no internet shows a friendly offline message, a timeout offers a retry, a 401 sends the user to login, and a 5xx shows a generic error and is logged to monitoring. For safe requests I retry automatically with exponential backoff. I set sensible timeouts, and I cache the last good data locally so the screen still shows something when offline. I never show raw error messages or stack traces to users.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy Mobile App Developer questions