ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
  • Customizing the permission request window
  • Configuring advertising tracking manually
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
AppleRequestTrackingAuthorizationAsynchronous (Function)
In french: AppleTrackingDemandeAutorisationAsynchrone
Displays the permission request for user activity tracking (iOS only).
This authorization is required to use AppleAdvertisingIdentifier.
Remark: the application should be fully functional, even if the user does not grant this permission: only activity tracking will be hindered.
Example
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:
atasAuthorizedThe authorization to track the user or the device has been granted.
atasDeniedThe authorization to track the user or the device has been denied.
atasNotDeterminedThe user has not yet granted or denied the request.
atasRestrictedThe 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
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help