iOS应用程序可以在执行“无线附件配置"时使用蜂窝互联网连接吗?通过WiFi? [英] Can iOS application use cellular internet connection while doing "Wireless Accessory Configuration" through WiFi?

查看:308
本文介绍了iOS应用程序可以在执行“无线附件配置"时使用蜂窝互联网连接吗?通过WiFi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Apple的无线附件配置"功能在WiFi设备配置期间是否可以访问Internet(使用蜂窝网络)?

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

此设备将创建WiFi网络,我们需要在配置设备时从服务器获取数据.

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

规格:

  1. 如果没有通过WiFi的互联网连接,iOS会自动使用蜂窝网络连接到互联网吗? (但仍与设备保持WiFi连接)
  2. 或者可以通过编程方式在连接之间进行切换吗?例如:通过WiFi从设备获取数据,通过蜂窝网络将数据发送到服务器,通过蜂窝网络从服务器获取数据,然后通过WiFi配置设备.
  3. 还有其他方法可以做到这一点吗?

推荐答案

来自Apple开发者论坛:

From Apple Developers Forum:

eskimo : 即使Wi-Fi完全正常运行,iOS也会使WWAN保持活动状态.之所以这样做,是因为重要的系统服务(如推送通知)始终在WWAN上运行.

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.

因此,您要问的是默认路由的切换.通常,只有在Wi-Fi完全启动并运行时,iOS才会将默认路由切换到Wi-Fi.这意味着WWAN在WAC过程中应保留默认路由."

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

这篇关于iOS应用程序可以在执行“无线附件配置"时使用蜂窝互联网连接吗?通过WiFi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆