我的iPhone应用程序需要持久的网络连接...如何指定UIRequiredDeviceCapabilities? [英] My iPhone app needs a persistent network connection...how to specify UIRequiredDeviceCapabilities?

查看:126
本文介绍了我的iPhone应用程序需要持久的网络连接...如何指定UIRequiredDeviceCapabilities?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Info.plist文件中设置UIRequiredDeviceCapabilities属性。我的应用需要持久的网络连接。如果我查看wifi键的定义,它会说:

I'm trying to set the UIRequiredDeviceCapabilities properties in my Info.plist file. My app requires a persistent network connection. If I look at the definition for the "wifi" key, it says:


如果您的应用程序
需要访问权限,请包含此密钥设备的网络
功能。

Include this key if your application requires access to the networking features of the device.

所以:wifi键表示我需要WiFi,如关键名称会建议吗?或者这是否意味着我只需要网络访问,因为密钥定义会建议?

So: does the "wifi" key indicate that I need WiFi, as the key name would suggest? Or does it mean that I simply need network access, as the key definition would suggest?

推荐答案

如果没有此密钥,iPhone将会在一定量的不活动后禁用wifi。使用此键,可以为您的应用永久启用wifi。

Without this key, the iPhone will disable wifi after a certain amount of inactivity. With this key, the wifi is kept permanently enabled for your app.

这篇关于我的iPhone应用程序需要持久的网络连接...如何指定UIRequiredDeviceCapabilities?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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