Can iOS application use cellular internet connection while doing “Wireless Accessory Configuration” through WiFi?

余生颓废 提交于 2019-12-08 07:00:24

问题


Is it possible to access internet (using cellular) during WiFi device configuration using Apple's "Wireless Accessory Configuration" feature?

This device would create the WiFi network and we would need to get data from the server while configurating the device.

Specifications:

  1. Would iOS automatically use cellular to connect to the internet if there is no internet connection through WiFi? (But still keeps WiFi connection with device)
  2. Or is it possible to programmatically switch between connections? For example: Get data from device through WiFi, send data to server through cellular, get data from server through cellular and then configurate device through WiFi.
  3. Some other way to accomplish this?

回答1:


From Apple Developers Forum:

eskimo: "iOS keeps WWAN active even when Wi-Fi is fully functioning. That’s done because important system services, like push notifications, always run over WWAN where possible.

So, what you’re asking about is the switch of the default route. In general, iOS only switches the default route to Wi-Fi when the Wi-Fi is fully up and running. That means that WWAN should remain the default route during the WAC process."

https://forums.developer.apple.com/thread/46528



来源:https://stackoverflow.com/questions/37021976/can-ios-application-use-cellular-internet-connection-while-doing-wireless-acces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!