locationManager on macOS with Wi-Fi turned off

Is there a way on macOS with Wi-Fi turned off to get your location? Preferable based on your ethernet host network IP.

According to the documentation, https://developer.apple.com/documentation/corelocation, it's supposed to work on macOS 10.6+.

My code works fine if Wi-Fi is turned on, but when it's turned off, locationManager is always nil.

Replies

Is there a way on macOS with Wi-Fi turned off to get your location?

Not that I’m aware of.

According to the documentation … it's supposed to work on macOS 10.6+.

What do you mean by “it”? Core Location works just fine on 10.6 and above, but its only source of location information on the Mac is Wi-Fi.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Disappointed but thank you.

Add a Comment