Application Tracking Privacy
Configure the Dana application
First you have to integrate the TrackingService in your application by following the case studies here.
Note
At this point, if you start your application on a TVOS device, you will have this error message :
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSUserTrackingUsageDescription key with a string value explaining to the user how the app uses this data.
This error needs to be fixed in the app_tvos
.
Configure app_tvos
The AppTrackingTransparency framework needs a message to be displayed in their popup.
This message is configurable in Info.plist
file in app_tvos
.
<key>NSUserTrackingUsageDescription</key>
<string>Dana is watching you !!</string>
Now, when the application starts, the framework will display the popup with the configured message.
Some tips
Note
Once the popup has been displayed, it will never be displayed anymore.
- If you want to modify your choice, go to the Apple TV Settings
Privacy & Security
>Tracking
to change the value. - If you want to display the popup again, delete the application and deploy it again.
More information
You can read the Apple documentation here.
The technical documentation of the ATT framework is here.