App settings

Each app has some general settings which can be configured. These settings can be changed by clicking the cog icon in the toolbar when inside an app.

Share App Preview URL

In the top-right section of the App Settings, you find a Share icon. Clicking this icon will open a dialog containing the URL to the App (in the Develop environment) as well as a QR code containing the same URL.

Scan the QR code to preview or test the App from your mobile device.

General settings

Device adaptivity and responsivity

App drawer

Event handlers

Run an action when the app is loaded/refreshed. This is commonly used to populate default data, check for URL parameters, or set a theme.

Note: Running actions on app load will increase app loading time and should be used with care.

Progressive Web App

These values are included in the app's web application manifest. Setting a value here will overwrite the equivalent value set in the Environment configuration.

Regarding the Enable Push setting: This will be deprecated from Appfarm version 23.4 (to be released september 2023). It will be replaced by an action node for requesting permissions. Note that with this Appfarm Release, push notifications will also be available for iOS devices. Up until spring 2023, push notifications have only been available for progressive web apps for Android.

Generate <meta> tags for rich link previews when the app is shared on social media or in messages on smartphones. For a detailed walkthrough of implementing link previews, see How to generate link previews for social media.

In addition to these values, the meta tag for the Open Graph property og:url is also generated and populated with your app's root URL.

Other

Timers

If you want to perform an action on a schedule when the app is in use, for example every minute, you can use a timer. Timers can be used to run automatic carousels/slideshows, fetch the latest data from an external API, or other dynamic features.

As an example, say you have a timer that is permanently enabled and has an interval of 30 seconds. When the app is loaded, a 30 second countdown will begin. When it reaches 0 the action specified for On Timeout will be triggered. The countdown will then begin again.

Topics

Topics can be used for lightweight communication between components. For example, to synchronize axis selection in charts.

Last updated