Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Required Background modes key is not there in info-plist file

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?

like image 665
Saurabh Gulia Avatar asked Feb 03 '14 10:02

Saurabh Gulia


3 Answers

In Xcode 5, Project setting -> Target -> Capabilities -> Background modes -> check Location updates.

If you are using an earlier version of Xcode, set the background mode for Location as in the following screenshot.

plist background modes

like image 196
Mani Avatar answered Oct 22 '22 06:10

Mani


In Xcode 5, Select your app, then enabled background modes and select location updates

Target > Capabilities

Xcode background mode settings screenshot

like image 34
Toseef Khilji Avatar answered Oct 22 '22 06:10

Toseef Khilji


You can add that key to the info.plist. If you are using Xcode 5 it's very simple. In Capabilities just turn on the Background Modes.

Xcode Capabilities screenshot

like image 12
Anil Varghese Avatar answered Oct 22 '22 05:10

Anil Varghese