通过“prefs:root = WIFI”打开Wifi设置在iOS 10中失败了

问题描述:

我在我的应用中使用了prefs:root = WIFI url方案,在info.plist中输入了prefs,直接打开了Wi-Fi设置中的iOS设置应用程序,它在iOS 9上运行良好,但它不再起作用了iOS 10。

I was using prefs:root=WIFI url scheme in my app with prefs entered in info.plist to open directly the iOS settings application in Wi-Fi settings and it was working great on iOS 9 but it does not work anymore on iOS 10.

有人知道这只是第一个开发者预览中的回归,还是在iOS 10中打开Wi-Fi设置的方式已经改变,或者它不是允许了吗?

Does anyone know if this is just a regression in the first developer preview or the way to open Wi-Fi settings has changed in iOS 10 or it is not allowed anymore?

就这么明确:Apple不允许这样做。无论如何,您的应用程序可能会通过,但这与使用任何其他未记录的API相同。

Just so it's explicit: Apple does not allow this. It's possible your app will make it through anyway, but this is the same as using any other undocumented API.

以下是支持的Apple URL方案的完整列表

这是一个主题,Apple确认这一点任何未正式记录的Apple URL方案都应被视为私有API。

Here's a thread where Apple confirms that "any Apple URL schemes that are not officially documented should be considered private API."