ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV Mobile 2025 feature!
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Opens a window that allows sharing the user's phone number(s).
Remarks:
  • To use this function, the phone number sharing option must be enabled on the device. To enable this option, go to the device settings, select "Google .. Autofill .. Phone number sharing". Caution: This series of options may be different depending on the device.
  • This function is particularly useful for automatically managing SMS two-factor authentication.
  • The SMSDetectOneTimeCode function gets one-time codes received by SMS.
Example
tapiGetNumber(procGetNumber)
INTERNAL PROCEDURE procGetNumber(sNumber is string)
	IF sNumber <> "" THEN
		ToastDisplay("Selected phone number: " + sNumber)
	ELSE 
		ToastDisplay(ErrorInfo()))
	END
END
Syntax
tapiGetNumber(<WLanguage procedure>)
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called when a number is selected or if an error occurs. This procedure has the following format:
PROCEDURE <Procedure name>(<Number>)
where <Number> is a string containing the selected phone number (or an empty string in case of error). If an error occurs, ErrorInfo can be used to retrieve the error message.
Remarks
tapiGetNumber must be executed from the main thread, and at least one window from the application must be open when the function is called. A fatal error will be raised if this is not the case.
Business / UI classification: Neutral code
Component: wd300android.aar
Minimum version required
  • Version 2025
Comments
Click [Add] to post a comment

Last update: 10/03/2024

Send a report | Local help