2

When I tether my mobile network to laptop with Hotspot on iPhone and test for Reachability's currentReachabilityStatus it reports ReachableViaWiFi where neither Wifi is open nor is it sharing mobile network via Wifi. I know even with this, it shows correct information on internet connectivity but the nature of my app requires exact information on whether Wi-fi is connected or not so its not the issue to determine internet connectivity but more of Wi-fi reachability.

x----x----x----x----x----x----x EDIT:

Infact it fails if there is no device connected on USB. Only reports ReachableViaWiFi when a machine is using its internet via USB.

ShayanK
  • 1,243
  • 2
  • 13
  • 27

1 Answers1

0

Open this post: detect hotspot enabling in iOS with private api's

Maybe enumerating network interfaces will let you discover the fact that connection is actually a tethered cellular network.

Don't worry that title includes private API - the solution contains also a way to this without using private API.

Community
  • 1
  • 1
Heps
  • 945
  • 9
  • 24