iOS WiFi通知API [英] iOS WiFi notification API

查看:65
本文介绍了iOS WiFi通知API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在iOS上以编程方式订阅WiFi通知?

Is there a way to programmatically subscribe to WiFi notifications on iOS?

例如,假设用户未禁用WiFi通知,当它们在WiFi网络范围内时,操作系统会提供可用网络的通知。应用程序是否可以订阅此通知并向用户提供自己的通知?

For example, assuming the user has not disabled WiFi notifications, when they are within range of a WiFi network, the operating system provides a notification of available networks. Can an app subscribe to this notification and provide it's own notification to the user?

应用程序是否可以检查SSID以查看它是否是特定网络,然后执行一些动作?

Could the app could even check the SSID to see if it is a specific network, and then perform some action?

推荐答案

看看 Reachability 演示和系统配置类。

Have a look at the Reachability demo and the System Configuration classes.

此SO问题涵盖了这个理由和SSID: IOS通知wifi连接,包括SSID

This SO question covers this ground and the SSID's: IOS notification of wifi connection including SSID

它看起来像强制网络支持也可能有用,它可以找到你所在网络的名称ser没有连接。

It looks like the Captive Network Support might also be useful, ito finding the names of networks to which the user is not connected.

这篇关于iOS WiFi通知API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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