How to Update Your PWA Home Screen Icon
In this article
To update the home screen icon of your progressive web app, you need to change the icon files referenced in your web app manifest and then get the browser to re-fetch that manifest. The catch is that most browsers cache the old icon aggressively, so simply replacing the image files often does nothing visible. The reliable method is to give the new icon a new file name, update the manifest to point to it, bump the manifest's URL or contents so it is treated as new, and then remove and re-add the app to the home screen on each device. Below is the full process, including the parts most guides skip.
What You'll Need
- Access to your site's source files (HTML, manifest, and image assets) and the ability to deploy them.
- Your existing web app manifest file, usually named
manifest.jsonormanifest.webmanifest. - New icon images in PNG format, at the sizes you already declare (commonly 192x192 and 512x512, plus any others your manifest lists).
- A way to test on a real phone or tablet, because desktop install behaviour differs from mobile.
- Patience: some platforms only refresh the icon after the app is uninstalled and reinstalled.
Step-by-Step
- Find your manifest. Open your site's HTML and look for the
<link rel="manifest">tag in the<head>. It tells you the manifest's file name and path. If you use a framework or site builder, the manifest may be generated automatically; check its documentation for where icon settings live. - Prepare the new icons. Export your new artwork as PNGs at every size your manifest declares. Keep the same dimensions as the old files so you do not have to rewrite the size entries. Use a square canvas and keep important content away from the edges, because some launchers crop icons into circles or rounded squares.
- Give the new files new names. Instead of overwriting
icon-192.png, save the new one as something likeicon-192-v2.png. Browsers and CDNs cache by URL, so a new file name is the simplest way to guarantee the new image is fetched. Do this for every size. - Update the manifest. Open the manifest and change each
srcvalue in theiconsarray to the new file names. Leave thesizesandtypevalues as they are unless you genuinely changed the image dimensions or format. If your manifest includes ashortcutsarray with its own icons, update those too. - Bump the manifest itself. Some browsers cache the manifest separately from the icons. The safest trick is to rename the manifest file (for example
manifest-v2.json) and update the<link rel="manifest">tag to match. If renaming is inconvenient, at minimum change something inside the manifest, such as thenameor a version-like field, so its contents differ from the cached copy. - Deploy and verify the files are live. Upload the new icons and manifest, then open the new icon URL directly in a browser tab. If you see the new image, the server is serving it. If you see the old one, your CDN or hosting cache is still holding it; purge that cache or wait for it to expire.
- Check the manifest in browser developer tools. On desktop Chrome, open DevTools, go to the Application tab, and select Manifest. Confirm the icons list shows your new file names and that the images load. This catches typos in paths before you touch any device.
- Remove and reinstall the app on each device. On Android, long-press the home screen icon and remove it (this uninstalls the web app), then open the site in the browser and use the install prompt or the browser menu's install option. On iOS, delete the home screen bookmark and add it again via the Share menu's Add to Home Screen option. On desktop, uninstall the PWA from the browser's app management page and reinstall from the address bar's install icon.
- Confirm the new icon. After reinstalling, check the home screen, the app switcher, and the splash screen if your app shows one. Some Android launchers also cache icons at the launcher level; if the old icon persists there, restarting the phone usually clears it.
Common Mistakes
- Overwriting the old icon file in place. The URL stays the same, so browsers keep showing the cached image. Always use a new file name.
- Updating the icons but not the manifest URL. The manifest is cached too, so the browser never learns about the new icon paths.
- Forgetting the maskable icon. If your manifest declares a
purposeofmaskablefor some icons, update those as well, or Android may fall back to an old or oddly cropped image. - Testing only on desktop. Desktop installs and mobile installs cache differently. Always verify on a real phone.
- Assuming an update happens without reinstalling. In most cases the home screen icon only changes after the app is removed and added again.
- Leaving stale files on the server. Old icon files can linger in caches and service workers. If you use a service worker, make sure it does not precache the old icon paths.
Tips
- Include at least a 192x192 and a 512x512 icon. These are the sizes Android and Chrome rely on most for home screen and splash screen use.
- Add a maskable icon with generous padding so the artwork survives circular and rounded-square masks on Android.
- Keep a simple, high-contrast design. Home screen icons are small, and fine detail disappears.
- If you use a service worker, update its cache version string when you change icons so it fetches the new files.
- Test the manifest with your browser's developer tools before deploying to users; it is faster than reinstalling on a phone repeatedly.
- Document the icon file names you use so the next update is a repeatable process rather than a guessing game.
Troubleshooting
If the icon still looks old after reinstalling, work through these checks in order. First, open the new icon URL directly on the phone's browser; if it shows the old image, the problem is server or CDN caching, not the manifest. Purge the cache or wait for it to expire. Second, open the site in the phone's browser and check the manifest through remote debugging if available, or simply view the manifest URL to confirm it lists the new file names. Third, clear the browser's site data for your domain, which removes cached manifest and icon files; note that this also clears local storage and cookies for the site, so warn users if relevant. Fourth, restart the phone, because some Android launchers cache icons independently of the browser. Fifth, try installing from a different browser to see whether the issue is browser-specific. If none of that works, rename the manifest file again with a fresh name and reinstall once more; a completely new manifest URL is the strongest signal to the browser that something changed.
Frequently Asked Questions
Why does my PWA still show the old icon after I replaced the image?
Because the icon URL did not change. Browsers cache images by URL, so overwriting a file in place usually leaves the cached copy in use. Use a new file name and update the manifest.
Do users have to reinstall the app to see the new icon?
In most cases yes. The home screen icon is captured at install time, so removing and re-adding the app is the reliable way to refresh it.
Can I force an icon update without reinstalling?
There is no standard, reliable way to push a new home screen icon to an already-installed PWA. Updating the manifest helps future installs, but existing installs generally need to be removed and re-added.
What icon sizes should my manifest include?
At minimum 192x192 and 512x512 PNGs, which cover the common Android and Chrome cases. Add other sizes only if your manifest already declares them or you have a specific need.
Does updating the icon affect iOS home screen bookmarks?
Yes, but iOS treats home screen web apps as bookmarks added via Safari's Share menu. You need to delete the existing bookmark and add it again to pick up the new icon.
Will changing the manifest break existing installs?
No. Existing installs keep working; they simply may not show the new icon until reinstalled. The manifest change only affects what the browser reads next time it installs or refreshes the app.