How to detect unsecured wifi network from iOS App

谁说我不能喝 提交于 2021-02-07 20:42:01

问题


I would like to detect the presence of unsecured wifi network in my app. Is there any public iOS API available to achieve the same?


回答1:


There is no documented API to get that information. If you application needs to send and receive sensitive data across the network, you should generally assume that no connection is secured.




回答2:


I would suggest you use an SSL connection for your web service. Then the data that leaves will be encrypted.




回答3:


Have a look at the stumbler application and in particular the MSNetworkDetailsView class, it gives the level of detail that you need.



来源:https://stackoverflow.com/questions/8559252/how-to-detect-unsecured-wifi-network-from-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!