Force Update a PWA in Android

Sometimes we may need to force update a PWA to get the latest version.


Clear the browser cache:

  1. Open Chrome for Android.
  2. Navigate to the URL of the PWA app.
  3. Tap the Lock icon on the address bar.
  4. Tap the Cookies and site data option.
  5. Tap the Trash can icon.


Initiate a cache update:

  1. Open Chrome for Android.
  2. In the address bar, type the following URL:
    chrome://webapks
  3. This should give you a list of all PWAs installed by Chrome.
  4. Locate the PWA to update. In our case, Collage Lite.
  5. Select Update <app> (or tap the Update Collage Lite button)


Restart the app:

  1. Close the app. Force close if necessary. There should be no running instance of the app.
  2. 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. 
  3. Close the app again.
  4. Re-open the app again.  App should now load the updated version.


Uninstall and re-install the app:

First, uninstall the app from your device.

  1. Open your device's Settings page.
  2. Go to the Apps section.
  3. Locate the PWA to update.
  4. Tap the PWA entry to open the details page.
  5. Perform the following:
     →  Tap Force stop.
     →  Tap Clear cache.
     →  Tap Clear storage.
     →  Tap Uninstall.
  6. Verify that the app no longer appears in the app list, app drawer and homescreen.

Then reinstall the app again using Chrome:

  1. Open Chrome for Android.
  2. Navigate to the URL of the PWA app.
  3. Tap Chrome's UI menu, and tap one of the following:
     →  Add to home screen
     →  Install
  4. Chrome starts downloading the assets required for the PWA.
  5. Wait for the process to finish. This may take a few minutes.
  6. Go to your home screen or the app drawer to verify if the PWA was successfully installed.


Comments