开发者

Connecting a Wireless Network programmatically in iPhone

开发者 https://www.devze.com 2023-01-06 18:49 出处:网络
I have a requirement where the client needs to automatically connect to a active wireless network based on his location.

I have a requirement where the client needs to automatically connect to a active wireless network based on his location.

The requirement is such that whenever a hotspot is available (in the absence of the user’s home network), the 开发者_StackOverflow中文版client will automatically connect to a wireless network present in that location and everything in that app (Weather Information etc) should work in the presence of this active internet connection While in presence of a secure Home network (the user’s own hub), it should automatically demote the network selected previously from the wireless networks list, thus enabling the device to automatically connect to the secure Home network

Is there any api in iPhone SDK where we can implement this functionality? If yes, are these api private or public? Can we have access to these api for development?


Wi-Fi setup is handled by Apple80211.framework. That's a private API. You cannot use it for apps you want to distribute or contract work.

If you need this functionality in iOS, you should file an enhancement request at bugreport.apple.com

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号