Need to prioritise Wifi over 4G programatically

Hi,

My app connects to an accessory via the hotspot provided by the accessory. This Wifi has no internet connection.

So when the mobile data is on, even though the wifi is connected priority is for mobile Data. All the local request that is sent to the accessory is failing.

  1. Is there a way to prioritise Wifi over mobile data ?.
  2. Is there a way to turn off mobile data programatically ?.

How to handle this situation?

Answered by DTS Engineer in 724990022

This seems to be tightly related to your other question, so let’s discuss it over there.

Share and Enjoy

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

Accepted Answer

This seems to be tightly related to your other question, so let’s discuss it over there.

Share and Enjoy

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

Need to prioritise Wifi over 4G programatically
 
 
Q