|
|
|
|
|
- Customizing the permission request window
- Configuring advertising tracking manually
AppleRequestTrackingAuthorizationAsynchronous (Function) In french: AppleTrackingDemandeAutorisationAsynchrone Displays the permission request for user activity tracking (iOS only).
Note: 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(AppleTrackingDemandeAutorisationAsynchrone_Callback)
CASE atasAuthorized
PisteUtilisateur()
END
INTERNAL PROCEDURE AppleTrackingDemandeAutorisationAsynchrone_Callback(EtatAutorisation)
IF EtatAutorisation = atasAuthorized THEN
PisteUtilisateur()
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|