shiny API for Framework7 (IOS/android)

Installation

Demo

A running demo is on shinyapps.io. Left side: android demo, right side: iOS demo

Progressive Web App (PWA)

Configuration

shinyF7 is PWA capable, meaning that it can be displayed full screen on many mobile devices. This feature is automatically handled by f7Page():

However to access launch icons, splatch screens … you must create a manifest.json file and an icon asset folder in the www folder of your app: more here.

The manifest.json file could be like:

Be sure to replace the start_url with your own url. Add also a custom name, even though this can be modified later when adding the PWA to your IOS apps.

Later, there will be a dedicated function that will create the manifest.json file as well as other necessary assets.

Add the PWA to your desktop Apps

Go to the url of your app. In this example this is: https://dgranjon.shinyapps.io/miniUI2Demo/. It opens like a classic web app.

  • Select the share button located in the bottom bar of your Iphone/Ipad.
  • Click on “Add to Home Screen”
  • Choose a relevant name and click on OK.
  • The app will be added to your IOS Apps. In case you want custom icons, replace the content of the www folder with your own.