iOS 11.0 - 定期扫描附近的SSID(WiFi) [英] iOS 11.0 - Periodically scan for SSIDs (WiFi) nearby

查看:448
本文介绍了iOS 11.0 - 定期扫描附近的SSID(WiFi)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想定期扫描附近的Wi-Fi网络SSID(不连接它)并实现SSID过滤器(一个或多个)。一旦找到匹配项,就会启动后端API调用。

I would like to scan for nearby SSIDs of the Wi-Fi networks periodically (without connecting to it) and implement an SSID filter (one or multiple). Once a match is found a back-end API call is initiated.

我已经对iOS 10中的Hotspot Helper框架做了快速研究。我发现,这些API不是为我确定的用途而设计的。


I have done a quick research on the Hotspot Helper framework in iOS 10. I found that, these APIs are not designed for the use I’ve identified.

似乎iOS 11现在允许应用程序以编程方式管理Wi-Fi配置。 Apple为热点配置方法和属性添加了网络扩展。请点击此处查看更改。


Seems like, iOS 11 now allows apps to manage Wi-Fi configurations programmatically. Apple added a network extension for hotspot configuration methods and properties. Please click here to see the changes. 


我的问题是,我可以通过新的iOS 11热点配置类实现我的目标吗?或者这是否提供已知网络的SSID或当前连接的网络?

My question here is, can I achieve my goal through the newly iOS 11 hotspot configuration class? Or does this provide the SSID of a known network or the currently connected one?


对此的任何帮助都非常感谢。


Any help on this is highly appreciated.

推荐答案

不幸的是,我们无法在iOS中实现这一点。

Unfortunately, we can't achieve this in iOS.

当我了解 NEHotspotConfiguration ,我最初很兴奋,因为我希望我们可以自动完成这个过程。但是,它似乎没有办法检索当前可用的SSID列表,这使得 NEHotspotConfiguration 对我们的用例来说,它的用处不大。

When I learned about NEHotspotConfiguration, I was initially excited, because I was hoping we could automate this process. However, it doesn't look like there's a way to retrieve a list of currently available SSIDs, which makes NEHotspotConfiguration much less useful for our use case.

这篇关于iOS 11.0 - 定期扫描附近的SSID(WiFi)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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