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

后端 未结 3 2227
天命终不由人
天命终不由人 2020-12-17 15:21

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

相关标签:
3条回答
  • 2020-12-17 16:02

    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.

    0 讨论(0)
  • 2020-12-17 16:12

    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.

    0 讨论(0)
  • 2020-12-17 16:17

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

    Target > Capabilities

    0 讨论(0)
提交回复
热议问题