The Radar SDK requires location permissions. Add the following keys to your Info.plist file:
1
Add location usage descriptions
Add usage description strings that explain why your app needs location access. These are shown to users in permission prompts.
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key><string>We use your location to provide location-based features and notifications.</string><key>NSLocationWhenInUseUsageDescription</key><string>We use your location to provide location-based features.</string>
Required: Both keys are required even if you only need foreground location access. Customize the descriptions to match your app’s use case.
2
Add motion usage description (optional)
If you want to use motion tracking for improved accuracy, add:
<key>NSMotionUsageDescription</key><string>We use motion data to improve location accuracy.</string>
If you need background location tracking, enable the Location updates background mode:
1
Open project settings
In Xcode, select your project in the Project Navigator.
2
Select your target
Select your app target from the TARGETS list.
3
Enable background modes
Go to the Signing & Capabilities tab.Click + Capability and add Background Modes.Check Location updates.
This allows your app to receive location updates while running in the background, which is required for features like geofencing and background tracking.