Adding a background mode on the Features tabs

I am using Xcode 6.3 and I just added bluetooth background mode in the capabilities tab:

enter image description here

A step is required requiring the instruction "Add" Required Backgrounds "to the info.plist file.

However, apple documentation says this is added automatically (see below) and if I check my info.plist file I find this:

Declaring Supported Applications Background Tasks Support for certain types of background execution must be declared in advance by the application that uses them. In Xcode 5 and later, you declare the background as your application maintains the Features tab of your project settings. Turning on the Background Modes option adds the UIBackgroundModes key to your application's Info.plist file. Selecting one or more checkboxes adds the corresponding background mode values ​​for that key. Table 3-1 lists the background modes you can specify and the values ​​that Xcode assigns to the UIBackgroundModes key in your application Info.plist file.

enter image description here

is that enough?

How can I check if it is working correctly?

0


source to share


2 answers


Yes, that's enough. The UI takes values ​​directly from the plist and writes them there.



You can open the plist manually and see what it says to be sure. It's just a text file.

+1


source


If you change anything from Capabilities, you will see that your plist will automatically update based on capabilities. They are both basically the same:

enter image description here to see the text, click on the image to enlarge it



What you see is the convenience of Xcode ... telling you that I wrote this in the plist for you. There was no such convenience before and you had to go to the plist and enter it manually.

0


source







All Articles