<-- Back

Deploying a new package for a Progressive Web App does not show updated version

Issue

After deploying a package towards the environment, the old deployment package is still visible. It is not until after performing a hard refresh ( Chrome Mac: Command + Shift + R OR Chrome Windows: Control + Shift + R) that the new deployment package is now visible.

Additionally an error similar to below noting runtime operation failed due to permission might be present:

User '<username>' attempted to execute runtime operation 'XXXXXXXXXXXXXXXXXX' but does not have the required permissions

Environment

Progressive Web Apps (PWA)

Cause

The reason for this behavior is because of a component of the Progressive Web App (PWA) architecture called the Service Worker. The service worker determines whether or not there is an update as it caches app resources so that the app can work without network connectivity.

If the user is attempting an action for a page that is cached but no longer exists in the most recently deployed package, the error noted above is an expected error line.

Solution / Workaround

For apps built with Studio Pro 11.9.0+, it is possible implement a custom update mechanism so that the app updates to the latest available version. Additional steps can be found in the linked documentation below.

Internal information related

  • 287768

Additional information

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.