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
  • Properties specific to AppleID variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
AppleID (Variable type)
In french: AppleID
The AppleID type corresponds to the identifier resulting from a successful Apple ID authentication. You can define and change the characteristics of this type of variable using different WLanguage properties.
Remarks:
  • This feature requires:
    • iOS 13 or higher; or macOS 10.15 or higher.
    • the activation of "Sign In" in the "Provisioning profile" of your application.
  • When authenticating with AppleSignIn, a WLanguage procedure is used to get the result of the authentication (AppleID variable).
  • For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
INTERNAL PROCEDURE auth(c is AppleID)
	IF c.Valid = False THEN
		IF ErrorInfo(errCode) = 600062 THEN
			LIB_Auth = "Vous avez annulé l'authentification."
		ELSE
			LIB_Auth = "Erreur pendant l'authentification" + CR + ErrorInfo()
		END
	ELSE
		LIB_Auth = "Bonjour " + c.User + CR
		LIB_Auth += c.LastName + " " + c.FirstName + CR
		LIB_Auth += c.Email + CR
		LIB_Auth += c.Source + CR
	END
END

AppleSignIn(auth)
Properties

Properties specific to AppleID variables

The following properties can be used to handle an Apple ID:
Property nameType usedEffect
AuthorizationCodeBufferEphemeral token used by your application as proof of authorization (e.g. https://appleid.apple.com/auth/token).
EmailCharacter stringEmail of the authenticated user.
Note: This email may be a bounce email provided by Apple (which allows forwarding to the user's real email address).
This property is specified only during the first authentication. If possible, this information will be provided on the device that performed the first authentication.
FirstNameCharacter stringFirst name of the authenticated user.
This property is specified only during the first authentication. If possible, this information will be provided on the device that performed the first authentication.
IDTokenBufferJWT (JSON Web Token).
LastNameCharacter stringLast name of the authenticated user.
This property is specified only during the first authentication. If possible, this information will be provided on the device that performed the first authentication.
SourceJSONPayload of the decoded JWT.
UserCharacter stringIdentifier associated with the authenticated user.
ValidBoolean
  • True if the authentication was successful,
  • False otherwise.
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help