• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Open Rehab Initiative Forum

Building an ORI Universal Application

Scheduled Pinned Locked Moved Support
1 Posts 1 Posters 32 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zlynt
    wrote on last edited by Zlynt
    #1

    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

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

  • Don't have an account? Register