ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
  • Properties specific to the description of AppleID variables
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
AppleID (Type of variable)
In french: AppleID
The AppleID type corresponds to the identifier resulting from a successful Apple ID authentication. The characteristics of this type of variable can be defined and changed 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
STC_Auth = "Authentication canceled by the user."
ELSE
STC_Auth = "Authentication error" + CR + ErrorInfo()
END
ELSE
STC_Auth = "Hello " + c.User + CR
STC_Auth += c.LastName + " " + c.FirstName + CR
STC_Auth += c.Email + CR
STC_Auth += c.Source + CR
END
END

AppleSignIn(auth)
Remarks

Properties specific to the description of 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.
Remark: This can be a bounce email provided by Apple (which allows transfer 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: 05/26/2022

Send a report | Local help