Building an ORI Universal Application
-
An ORI Universal Application is nothing more than an HTML page with access to some special browser APIs provided to it, rendered using a chromium-based browser.
Requirements
- All the necessary HTML, JS, CSS files containing the app
- app_info.json (Generated by the ORI Developer Toolkit)
Adapting the app_info.json to work with an Universal App
For the ORI App to recognize our Universal App as such, we need to add the following parameter to our app_info.json:
"rua": true,
This parameter tells the ORI App that the current app is an ORI Universal App
We also need to declare the setting for our Universal App, on the same app_info.json file:
"rua_parameters": { "fullscreen": false, "width": 1000, "minWidth": 1000, "height": 600, "minHeight": 600, "resizable": true, "frame": true, "developerTools": false }
The “rua_parameters” parameter includes the browser window settings for the Universal App
- “fullscreen”: Open in full screen?
- “width”: Inicial size of the window
- “minWidth”: Minimum allowed windows size
- “height”: Inicial height of the window
- “minHeight”: Minimum allowed window height
- “resizable”: Allow the user to resize the window
- “frame”: Show window maximize, minimize and close button
- “developerTools”: Enable chromium developer tools
Publishing into the ORI
After all configuration is done, we can create an installer and publish it into the ORI using the ORI Developer Toolkit.
Note: After the installer insertion into the ORI, select the installers compatibility with Universal App