PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Application in the background: Android 10 specific case
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
CheckUserIdentity (Function)
In french: VérifieIdentitéUtilisateur
Allows you to check the real identity of the current user via biometrics check.
If the authentication is available, a message asks the user to authenticate himself. Then, the WLanguage authentication procedure is called.
Caution: This function only verifies the user's identity via the data stored on his mobile phone. It is not possible to capture and save the user's fingerprint.
Remarks:
  • iPhone/iPad This function is available from iOS version 8.0. The project must be compiled with Xcode 6 (or later). This function is using:
    • the "Touch ID" feature of iPhones 5S and later versions.
    • Versions 23 and later
      the "Facial recognition" feature of iPhone X.
      New in version 23
      the "Facial recognition" feature of iPhone X.
      the "Facial recognition" feature of iPhone X.
  • Versions 23 and later
    Android This feature is available from Android 6.0 (api level 23).
    New in version 23
    Android This feature is available from Android 6.0 (api level 23).
    Android This feature is available from Android 6.0 (api level 23).
Versions 23 and later
Android This function is now available for Android applications.
New in version 23
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Example
CheckUserIdentity("Check the identity for unlocking", Authentication)
// Check procedure
PROCEDURE Authentication(nStatus is an integer, sErrorMessage is a string)
 
SWITCH nStatus
CASE cuiAuthenticated
Info("Authentication OK")
CASE cuiAuthenticationFailure
Error("Authentication failure: " + sErrorMessage)
CASE cuiAuthenticationUnavailable
Error("Authentication not available")
CASE cuiCustomAuthentication
pwd is string
// Comments typed by the user in a multiline control
SWITCH Input("Enter the password: ", pwd)
// OK
CASE 1:
// Cancel
CASE 0:
END
END
Syntax
CheckUserIdentity(<Message> , <WLanguage procedure> [, <Button caption>])
<Message>: Character string (with quotes)
Message that will be displayed to the user.
iPhone/iPad
  • If this string is a multiline string, only the first line will be visible in the identification popup.
  • This parameter is ignored during a facial recognition.
<WLanguage procedure>: Procedure name
Name of the Procedure WLanguage (also called "callback") called at the end of the user authentication. This procedure has the following format:
PROCEDURE <Procedure name> (<Status>, <Error message>)
where:
  • <Status> is an Integer constant indicating the authentication status:
    cuiAuthenticationUnavailableThe authentication feature is not available or it was disabled by the user.
    cuiCustomAuthenticationThe user wants to authenticate by using a password: the application will have to manage this authentication manually
    cuiAuthenticatedThe user was properly authenticated.
    cuiAuthenticationFailureThe authentication failed.
  • <Error message> is a character string containing the system error message in case of authentication failure (cuiAuthenticationFailure constant). Otherwise, this parameter corresponds to an empty string.
<Button caption>: Optional character string (with quotes)
Default caption of authentication button (displayed on the button for typing the password). This button is used to connect without checking the biometrics. This button is displayed as soon as the first failure occurs.
Remarks
Versions 25 and later
Android

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
CheckUserIdentity can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
New in version 25
Android

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
CheckUserIdentity can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
Android

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
CheckUserIdentity can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
Component : wd260android.aar
Minimum version required
  • Version 20
Comments
Click [Add] to post a comment