For the case of semi-static apps, the title must also specify for how long the cached snapshot will be valid in seconds.

The following example will notify the player to get a snapshot and consider it valid for the next hour:

document.title = '{"ready_for_cache": true, "valid_for": 3600}'

The player will automatically take care of starting the app when the cached snapshot is no longer valid.

Notes

  • The cache is persistent and it is stored on the SD card.
  • If you make any changes to your app on the Web portal, any cached snapshots will be deleted, and new ones will be created.
  • The app will have about 30 seconds after it has been started to set the title to notify the player to get a snapshot. If the title is not changed, the app will be rendered normally using the Web rendering engine (WebKit or Chromium).
  • When static app snapshots are created, a blinking message “Preparing content” will appear on the bottom right corner of the screen.