通过“prefs:root = WIFI”打开Wifi设置在iOS 10中失败了 [英] Open Wifi Settings by "prefs:root=WIFI" failed in iOS 10

查看:757
本文介绍了通过“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."

这篇关于通过“prefs:root = WIFI”打开Wifi设置在iOS 10中失败了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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