Skip to content

Updating

Colin Halseth edited this page May 16, 2021 · 3 revisions

TrekSharp is distributed as a progressive web application (PWA). While this brings many benefits, such as the ability to run the app offline or to install it to a mobile device, it also complicates the procedure to receive updates. This is because there is no automatic updater built into the device that the app is installed on, and because all the assets and code are locally cached and run from the cache.

When an update is released, the next time you launch the application a notification should appear in the bottom right corner telling you to update. Press the REFRESH button in the notification to apply the update and reload the app.

If this update procedure does not work, an alternative manual approach to applying updates would be to

  1. Completely close the application
  2. Open the application anew
  3. Wait a few minutes for the background service worker to fetch the updated assets and replace the cached objects
  4. Completely close the application

When you next open the application it should have downloaded all the new assets to the cache and will load those updates immediately.