I'm using CMMotionManager startDeviceMotionUpdatesUsingReferenceFrame: CMAttitudeReferenceFrameXTrueNorthZVertical
and have set the NSMotionUsageDescription
("Privacy - Motion Usage Description") property in the info.plist. But I don't see a permissions popup.
I also don't see any mention of this in the app's section of the Settings app.
When is this usage description string used?
I wonder if there is some connection between the motion permission and the location permission, which I also use?
I did notice that the text you've quoted doesn't include CMMotionManager, but I think I assumed that CMMotionManager was "obviously" included in "APIs that access the device's motion data", and that the docs were mentioning only the other less-obvious ones.
Sigh... actually I'm afraid that was a very busy day and I was jumping back and forth between to many things while writing your reply. In the message above I wrote:
Neither of those are really an issue with CMMotionActivityManager, which is primarily used for things like in app motion controls and which only really works in the foreground.
But that SHOULD have said:
Neither of those are really an issue with CMMotionManager, which is primarily used for things like in app motion controls and which only really works in the foreground.
In other words, CMMotionManager is the specific API I was describing there.
So - if I'm using CMMotionManager, and not any of the other listed APIs, do I need to include the usage description string to get approved? I've just had an update approved with the string present so including it unnecessarily doesn't seem to be an issue.
Yes, that's correct. I don't see any issue with including the string, but CMMotionManager does not currently require any privacy authorization.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware