开发者

How to set wifi option in the iPhone UIRequiredDeviceCapabilities plist?

开发者 https://www.devze.com 2023-02-07 14:50 出处:网络
My app uses an internet connection. I think I need to set the UIRequiredDeviceCapabilities in the plist with some sort of wifi/cellular property.

My app uses an internet connection. I think I need to set the UIRequiredDeviceCapabilities in the plist with some sort of wifi/cellular property.

Does anyone know the corr开发者_如何学Pythonect keys I need to add?

Thanks in advance.


Sounds like you might be after the "UIRequiresPersistentWiFi" key.

See the Information Property List Key Reference document for the full list of keys.


Reference this tech document

http://developer.apple.com/library/ios/#qa/qa2010/qa1397.html


This should be done in code. Look at the Reachability.h libraries. As far as I know all the iOS devices have WiFi so this would be a pointless key.


All current (and past) shipping iOS devices have internet capability. So no such key exists.

Whether the user has turned one or more of them on is something an installed app has to determine at run-time.

0

精彩评论

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