iOS Motion data policy#
Your app must have access to the Motion data if you want to use the Trip detection feature. This access is driven by the Motion & Fitness authorization.
Access to Motion data (iOS level)#
First of all, your app must ensure, at any time, to have access to Motion data.
See Apple’s CMMotionActivityManager description.
Include Motion Usage Description key#
To use this API, you must include the NSMotionUsageDescription key in your app’s Info.plist
file and provide a usage description string for this key.
The usage description appears in the prompt that the user must accept the first time the system asks the user to access motion data for your app.
If you don’t include a usage description string, your app crashes when our SDK will call this API.