Using Cellular Data While Connected to Wifi

Hello,

A quick background:
I am developing an App that receives a data stream from a device through its Wi-Fi network. The device itself is not connected to the internet, so the app won't be either.
Now, I am adding a new feature to the App that would require internet connection during the data stream. Consequently, my users would need to use their cellular data.

On later versions of iPhone, the phone would occasionally detect the lack of internet connection and asks the user via a pop-up if they want to use their cellular data. However, this behavior is not consistent.

So my question is- can we programmatically invoke this pop-up so the user can connect to the internet?
Or even better- can we program the App to use cellular data while still being connected to a Wi-Fi network?

Note:
I have seen mixed answers on the internet whether this is doable or not, and I know that users are able do it themselves by manually configuring their IP in their WiFi settings page, but I doubt this operation can be done through the App for security reasons.

Thanks!

@ryanebner, did you find a way to do this?

This depends on what networking API you’re using. If you’re using Network framework, you can force a connection to run over a specific interface type using the requiredInterfaceType property. If you’re not using Network framework, let us know what you’re using instead.

Share and Enjoy

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

@eskimo

I have similar issue.

My app connects to an accessory via the hotspot provided by the accessory. This Wifi has no internet connection. Also app uses WKWEBView to load UI. 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.

Is there a way to force the WKWebView or app to use WIFI over cellular?

Using Cellular Data While Connected to Wifi
 
 
Q