Optimizing your app for network reachability

Click for: original source

Network Reachability is a vital aspect of apps that use some networking capabilities. Your users won’t always have a good internet connection, so optimizing your app for bad networking conditions is essential. By Antoine van der Lee.

In this guide you will find information on:

  • Wait for connectivity instead of pre-checking for reachability
  • Restricting your app to WiFi only
  • Responding to networking errors
  • When you should use networking reachability checks
  • Testing your app for network connectivity
  • Disabling networking for your simulator app only

Optimizing your app for Network Reachability starts by preventing common mistakes like pre-checking for reachability before performing a request. Once you encounter a missing connection, you can check for a restored connection and resume requests accordingly. Using RocketSim, you’re able to validate your implementation without affecting your Mac’s connection. Nice one!

[Read More]

Tags app-development ios swiftlang learning