My iPhone app needs a persistent network connection…how to specify UIRequiredDeviceCapabilities?

前端 未结 4 1760
滥情空心
滥情空心 2020-12-21 09:15

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 \"

4条回答
  •  猫巷女王i
    2020-12-21 09:52

    First of all, UIRequiresPersistentWiFi does not pertain just to WiFi, but is simply a way to state that your program is a network application and will be using any connection persistently. This in particular was mentioned by Apple developer doing WWDC presentation on network programming (last year, I think).

    Second, the wifi key of required device capabilities does seem to pertain to the WiFi in particular. The Unicom iPhone available in China has WiFi turned off (but is capable of connecting to network using cellular connection), and I've heard of reports that wifi key is (or at least was) causing trouble with installations.

提交回复
热议问题