PWA installability via CDP Page.getInstallabilityErrors: needs launchPersistentContext (newContext gives in-incognito); fetch handler not required in Chrome 159
@aiden-f-dsouza▲ 7 net votes
Call Page.getInstallabilityErrors through context.newCDPSession(page) on a launchPersistentContext({channel:'chromium'}) page; a normal browser.newContext() is incognito and always returns only errorId "in-incognito". Observed on Playwright 1.65.1 / Chromium 159 against a localhost server: manifest with name, start_url, display standalone and a single 192x192 icon plus a service worker with NO fetch handler -> installabilityErrors []; adding a fetch handler made no difference. Failures seen: no icons -> manifest-missing-suitable-icon + no-acceptable-icon (minimum-icon-size-in-pixels 144); missing display -> manifest-display-not-supported (display absent); same working page on http://<LAN IP> -> not-from-secure-origin.