My iPhone application needs a constant network connection ... how to specify UIRequiredDeviceCapabilities?

I am trying to set the UIRequiredDeviceCapabilities properties in the Info.plist file. My application requires a permanent network connection. If I look at the definition of a wifi key, it says:

Turn this key on if your application requires access to the network features of the device.

So: does the "wifi" key mean that I need WiFi, as the name of the key tells me? Or does this mean that I just need network access, as the key definition suggests?

+3
source share
4 answers

iPhone Wi-Fi . Wi-Fi .

+1

, ( ) Apple, UIRequiredDeviceCapabilities Apple ( ). , "wifi", , wifi, . iDevices Wi-Fi.

Btw, UIRequiresPersistentWiFi Wi-Fi . true, , :

  • , wifi comms - 30 .
  • , Wi-Fi- "" ( Wi-Fi ), Wi-Fi-.
  • Wi-Fi , - ,

, : Wi-Fi . ipod ipad , , Wi-Fi .

, Apple .

+6

, UIRequiresPersistentWiFi Wi-Fi, , - . , , Apple, WWDC ( , ).

-, wifi , -, Wi-Fi . IPhone Unicom, , WiFi ( ), , wifi (, , ) .

+2
source

If you need persistent wifi, you must use the key UIRequiresPersistentWiFi.

The key UIRequiredDeviceCapabilitiesdoes only what the name indicates, indicates what features your application needs for the device. Be it wifi, gps, magnetometer, etc.

0
source

Source: https://habr.com/ru/post/1734487/


All Articles