I am trying to allow my app to run in the background for more that 10 minutes, according to this and my good below. (I want to use long background running to keep track of a
So your app uses location services. Then please read the Location Awareness Programming Guide.
You need to make some changes to your Info.plist:
location-services
to UIRequiredDeviceCapabilities
gps
to UIRequiredDeviceCapabilities
location
to UIBackgroundModes
. Then your location manager will deliver locations beyond the 10-minute-limit.NSLocationUsageDescription
(can also be localized)Getting Location Events in the Background
If your app needs location updates delivered whether the app is in the foreground or background, there are multiple options for doing so. The preferred option is to use the significant location change service to wake your app at appropriate times to handle new events. However, if your app needs to use the standard location service, you can declare your app as needing background location services.
An app should request background location services only if the absence of those services would impair its ability to operate. In addition, any app that requests background location services should use those services to provide a tangible benefit to the user. For example, a turn-by-turn navigation app would be a likely candidate for background location services because of its need to track the user’s position and report when it is time to make the next turn.