Packaging for GWA
Genero Web application (GWA) is a Genero application running entirely in the browser.
With a GWA application, you do not need a runtime system (fglrun) process on the server side. In fact, there is no other software server side except a web server. A GWA application is by default a "progressive web app" (PWA); meaning once loaded from a web server, it can continue to run offline without any connection to the internet.
A GWA application has certain similarities with Genero Mobile for Android™(GMA) and Genero Mobile for iOS (GMI) application; however, the main difference is that the Genero runtime is not compiled into native code, instead the runtime system is compiled to WebAssembly (external link) modules (wasm) for execution on the web at native speed.
Another noticeable difference between GMA/GMI and GWA, is that a GWA application emulates a file system in the browser, whereas in a GMA/GMI application the file systems of Android/IOS® can be used.
For further information on GWA, go to Genero Web applications in the Genero Business Development Language User Guide.
Package for a GWA application
Creating a package for a mobile platform follows the general packaging procedure.
- Navigate to your packages group.
- Right-click the packages group and click New Package.
- Click Genero Web Application.
Directory | Contents |
---|---|
Binaries | Binary files, such as the compiled modules (.42m files). |
Config | Configuration files. By default, this node includes fglprofile to provide the database driver and source information. |
Database | Database files. By default, this node includes db files, because SQLite is the supported database. |
Images | Image files. By default, this node includes .png, .jpg, and .ttf files, as well as the image2font.txt file. |
Resources | Application resource files, such as action defaults (.4ad) and style files (.4st). |
Webcomponents | Web component files. |
To define the title used by a GWA application, navigate to the Properties window and within the Package section specify the Label.
For more information, go to Package node properties.
Launch and debug a GWA package
To launch a GWA application, right-click on the GWA package node and select Launch. The application is launched on the Genero Application Server (GAS).
To debug an application, choose one of the following options:
- Right-click on the GWA package node and select Debug.
- Right-click on the GWA package node, select Deploy and copy the URL from the Output window. In the toolbar select , enter the URL and click Debug.
PhoneDemo
The PhoneDemo_Web_App is part of the package nodes within the PhoneDemo. This provides an example of a GWA package node. For information on the PhoneDemo, go to Genero mobile app demos.
GWAUSERDIR
The GWAUSERDIR environment variable specifies a directory from which all files will be copied into the gwa directory (a child of the distribution directory) when packaging a Genero Web Application (GWA) from within Genero Studio. For example, you can use the GWAUSERDIR variable to set up a manifest file and favicon to use in your GWA package.