iOS - Get current Wifi credentials (SSID & password)

不问归期 提交于 2019-12-11 05:57:35

问题


I recently bought a smart personal scales including an iOS-App. While doing the wifi-setup of the scales on my iPhone, iOS asked me to allow this App to hand on my credentials of my current Wifi-network, I was logged in. I was looking for this feature quite intensive but without success, because I'd also like to just hand it on to another device to connect it to Wifi.

How can I do this in my App to fetch the Wifi credentials?


回答1:


I believe this functionality is built into the HomeKit / MFI frameworks and it not a usable API.

See the documentation here

So you can use the API to look for devices that aren't currently configured and configure them on your device. The underlying frameworks may share additional information but you wouldn't be able to request this information from another application as there isn't any public methods for it and it would definately be a security risk anyway.



来源:https://stackoverflow.com/questions/39389985/ios-get-current-wifi-credentials-ssid-password

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