ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Executable functions
  • Necessary conditions
  • Application in the background: Specific case from Android 10
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
AppOpenForm (Function)
In french: AppliOuvreFiche
Opens:
  • the form of an application on Android (Play Store), iOS (App Store) or Windows (Windows Store) in order for the user to give a mark to it and/or to comment it.
  • AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the form for configuring the In-App purchases of an application.
Example
AndroidAndroid Widget
// Open the application form 
AppOpenForm("com.pcsoft.wm_expense_account")

// Open the form of current application
AppOpenForm()
iPhone/iPadIOS WidgetMac Catalyst
// Open the application form 
AppOpenForm("47232570")
Syntax
AppOpenForm([<Application> [, <Type of form>]])
<Application>: Optional character string
AndroidAndroid Widget Full name of application for which the form will be opened. This name has the following format: <package>.<application name> (for example: com.pcsoft.wm_expense_account). If this parameter is not specified, the form of current application will be opened.
iPhone/iPadIOS WidgetMac Catalyst iTunes identifier of application. To get this identifier:
1. Go to http://linkmaker.itunes.apple.com/us/.
2. Type the application name. The number is found in the returned URL.
For example, for the WB Quizz application of PC Soft, the address is "https://itunes.apple.com/us/app/wb-quizz/id473232570?mt=8&uo=4" target="itunes_store"" and the identifier is 473232570.
Universal Windows 10 App Application identifier. To get this identifier:
1. Go to the Windows store.
2. Find the requested application and display its form. The number is found in the returned URL.
<Type of form>: Optional Integer constant
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst Indicates the type of form to open:
formApplication
(Default value)
Opens the application form.
formInAppPurchaseOpens the window for configuring In-App purchases.
AndroidAndroid Widget Opens the same form as when using the formApplication constant.
Remarks

Necessary conditions

The application for which the form must be opened must have been published on the store beforehand.
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
AppOpenForm 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: wd290android.aar
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/08/2023

Send a report | Local help