Xcode Project Configuration

1. Enable Background Modes

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.

2. Permissions

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.

Last updated