The majority of Omnis web or mobile apps are run in the web browser on the client device, either on a desktop computer, tablet or phone, and are accessed via a standard URL. However for some mobile apps, you may want to wrap your application into one of the Application Wrappers, available for Android, iOS, and Windows, which provides the end user with a single, clickable icon to launch the app on their phone or tablet. When your app is running inside a wrapper, the app can stay permanently connected, communicating with the Omnis Server and backend database as required, or the app can work off-line periodically, and when re-connected can synchronize the data and any application content.
However, it is also possible to run an app inside a wrapper entirely off-line, which is usually referred to as “Serverless Client” mode, meaning that the app stores the data in a local SQLite database on the device, and there is never a connection to the Omnis Server or a remote database. This option may be appropriate for certain types of specialized app aimed at individual users, where the data is never shared or added to a central database.
Serverless Client example app – OmniSnap
We have created an example mobile app to demonstrate how you can run an app off-line in Serverless mode inside the wrapper. The concept behind the example app is to record items in ‘nature’ (plants, animals, etc) in the field – the app allows you to take a photo of the item (using the Device component to access the camera or camera roll), and enter some basic info about the item. The app also records the location of the mobile device, and therefore the location of the item found, using the GPS function on the device (again using the Device component).
Download the example app: https://github.com/OmnisStudio/Omnis-ServerlessClient