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 permissionsEnvironment
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
- Mendix documentation: Detecting and Handling Updates in Your PWA
- Related KBA: Error Executing runtime operation failed for security reasons
0 Comments