Skip to content

ATTrackingManager

Stanislav Osipov edited this page Jul 7, 2021 · 2 revisions

The ISN_ATTrackingManager is a mirrored class of the ATTrackingManager it provides a tracking authorization request and the tracking authorization status of the app.

Use the AppTrackingTransparency framework if your app collects data about end-users and shares it with other companies for purposes of tracking across apps and web sites. The AppTrackingTransparency framework presents an app-tracking authorization request to the user and provides the tracking authorization status.

  1. Enabled App Tracking Transparency framework support
UM_Welcome_-_NativePluginsUnityProject_-_iOS_-_Unity_2019_4_11f1__Metal_
  1. Set up a NSUserTrackingUsageDescription to display a system-permission alert request for your app installed on end-user devices.
UM_Welcome_-_NativePluginsUnityProject_-_iOS_-_Unity_2019_4_11f1__Metal_
  1. Call RequestTrackingAuthorization to present the app-tracking authorization request to the end-user.
using SA.CrossPlatform.UI;
using SA.iOS.AppTrackingTransparency;
...

ISN_ATTrackingManager.RequestTrackingAuthorization(status =>
{
    Debug.Log($"New authorization status: {status}");
    UM_DialogsUtility.ShowNotification(status.ToString());
});
  1. Use TrackingAuthorizationStatus to determine the app-tracking permission status. See ISN_ATTrackingManager.AuthorizationStatus for status enums.
using SA.iOS.AppTrackingTransparency;
...

Debug.Log($"Current authorization status: {ISN_ATTrackingManager.TrackingAuthorizationStatus}");

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally