Xcode Project Configuration
Last updated
Last updated
In the Signing & Capabilities tab of your project settings turn on Background Modes and enable: Location updates and Background fetch as seen in the image.
As required by Apple, it's necessary to add the following permissions' descriptions to the project .plist file:
NSLocationAlwaysUsageDescription
NSLocationAlwaysAndWhenInUseUsageDescription
NSLocationWhenInUseUsageDescription
NSLocationUsageDescription
NSBluetoothPeripheralUsageDescription
NSBluetoothAlwaysUsageDescription
NSMotionUsageDescription
The best practice is to notify the user beforehand, providing an incentive to approve the permissions. Apple's Human Interface Guidelines provide useful tips about requesting permissions.
Warning: App submission will fail if these are not provided.