I want to set required background mode key value so that my app also works in background. Actually i want to get the user location updates when the app is in background, but there is no key called required background mode key in my info-plist file. How to set this key and jow to bring this in my file?
In xcode 5, Project setting -> Target -> Capabilities -> Background modes -> check Location updates.
If your are using below than xcode 5, set background mode for Location as below screen shot.
You can add that key to the info.plist. If you are using Xcode 5 its very simple. In Capabilities just turn on the Background Modes
In xcode5 , Select Your APP than enabled background modes and select location updates
Target > Capabilities
来源:https://stackoverflow.com/questions/21524421/required-background-modes-key-is-not-there-in-info-plist-file