|
|
|
|
- Customizing the permission request window
- Configuring advertising tracking manually
AppleRequestTrackingAuthorizationAsynchronous (Function) In french: AppleTrackingDemandeAutorisationAsynchrone Displays the permission request for user activity tracking (iOS only).
Remark: the application should be fully functional, even if the user does not grant this permission: only activity tracking will be hindered.
SWITCH AppleTrackingAuthorizationStatus() CASE atasNotDetermined AppleRequestTrackingAuthorizationAsynchronous(... AppleRequestTrackingAuthorizationAsynchronous_Callback) CASE atasAuthorized TrackUser() END INTERNAL PROCEDURE AppleRequestTrackingAuthorizationAsynchronous_Callback(AuthorizationStatus) IF AuthorizationStatus = atasAuthorized THEN TrackUser() END END
Syntax
AppleRequestTrackingAuthorizationAsynchronous(<WLanguage procedure>)
<WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback") called on the user's response. This procedure has the following format:
<Procedure name>(<Status>)
where <Status> is an Integer constant that can take one of the following values: | | atasAuthorized | The authorization to track the user or the device has been granted. | atasDenied | The authorization to track the user or the device has been denied. | atasNotDetermined | The user has not yet granted or denied the request. | atasRestricted | The device is managed by a "Device Management Profile" which restricts tracking. |
Remarks Customizing the permission request window The text of the authorization request cannot be customized. You can, however, add a short explanatory text in the window. This message can be entered in "Permissions", in the iOS application generation wizard. Simply enter a specific text for the "Tracking Usage Description" permission. Configuring advertising tracking manually To configure tracking for an application: - Before iOS 14, tracking is common to all applications. It can be configured via "Settings >> Privacy >> Advertising".
- Starting with iOS 14, ad tracking can be customized:
- for the device and applications: "Settings >> Privacy >> Advertising".
- for applications: "Settings >> "Application name" >> Allow Tracking".
Business / UI classification: Neutral code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|