I am using the following to reduce the problems, at least explaining to the user what is going on:
-
Set a global variable, pwa_update, in my app to allow an update at the start of the app (when the first form is shown) and prevent it when the form is navigated away from.
-
Modify the appstudioFunctions.js file after compilation to:
if (pwa_update == 1) {
location.reload();
} -
Check the version of the currently loaded app against the version stored during the previous run. If the versions do not match, show a message to the user to explain that an update has occurred.