ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
  • Customizing the permission request window
  • Configuring advertising tracking manually
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Note: 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(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:
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: 04/03/2025

Send a report | Local help