Force Update a PWA in Android
Sometimes we may need to force update a PWA to get the latest version.
Clear the browser cache:
- Open Chrome for Android.
- Navigate to the URL of the PWA app.
- Tap the
Lock icon on the address bar. - Tap the
Cookies and site data option. - Tap the
Trash can icon.
Initiate a cache update:
- Open Chrome for Android.
- In the address bar, type the following URL:
chrome://webapks - This should give you a list of all PWAs installed by Chrome.
- Locate the PWA to update. In our case, Collage Lite.
- Select Update <app> (or tap the Update Collage Lite button)
Restart the app:
- Close the app. Force close if necessary. There should be no running instance of the app.
- Open the app again. App still loads the old cache for the current session, but it should now check for updates. If the apps finds any changes, it starts downloading the updated assets.
- Close the app again.
- Re-open the app again. App should now load the updated version.
Uninstall and re-install the app:
- Open your device's Settings page.
- Go to the Apps section.
- Locate the PWA to update.
- Tap the PWA entry to open the details page.
- Perform the following:
→ TapForce stop.
→ TapClear cache.
→ TapClear storage.
→ TapUninstall. - Verify that the app no longer appears in the app list, app drawer and homescreen.
- Open Chrome for Android.
- Navigate to the URL of the PWA app.
- Tap Chrome's UI menu, and tap one of the following:
→Add to home screen
→Install - Chrome starts downloading the assets required for the PWA.
- Wait for the process to finish. This may take a few minutes.
- Go to your home screen or the app drawer to verify if the PWA was successfully installed.
Comments
Post a Comment