How to check whether Wi-Fi /Mobile Internet are on and working?

Hi there

to offer the best user experience I'd like to:
  1. Check whether the Wi-Fi / Mobile Internet on the iPhone are on or off. Is there an interface for that?

  2. If they're on how much can I check connection wise? Maybe Wi-Fi is actually working, i.e. I can connect to the router but there is no internet connection.

Can someone please enlighten me how these cases can be handled? What interfaces are available? How precise can one get to help the user understand where the problem might lie?


Thomas

Can you tell us what type of real world problem you’re trying to solve here? The reason I ask is that many of the specific questions you ask have answers but those answers generally don’t help solve real world problems.

For example, if you detect the Wi-Fi and WWAN are off, you might tell the user that you can’t connect because no network interface, which would be confusing to a user who has plugged in an Ethernet adapter.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
I've build a remote type of app consisting of a macOS and an iPhone part. User has to connect from the iPhone to the Mac to be able to start using the app.

First real world problem. User's Wifi on the iPhone is off. Is there an interface to check for that?

Second real world problem. WiFi on the iPhone is on but the phone is not connecting to WiFi for some reason. Happens with all the iPhones I had so far starting with iPhone 3...

Third real world problem. While the user is working with the app there is a problem with WiFi connection.

There are two ways of solving this. If the app cannot connect we can show the user we cannot connect, please check your connection.

But If there are various network interfaces why wouldn't I want to help esp the less sophisticated user and point out what I can discover like your WiFi is off etc.?

So what WiFi / Network Interfaces does Apple offer to support the users troubleshooting possible connection problems?
How to check whether Wi-Fi /Mobile Internet are on and working?
 
 
Q