Closed QC-L closed 5 months ago
There are times when we need to handle different logic based on the result of userChoice.
$pwa?.install().then((userChoice) => { if (userChoice.outcome === 'accepted') { console.log('accepted install'); } })
Note: if the user installs the app, some platforms will close the app in the browser and will open the installed PWA (for example Chrome and Edge in Windows Desktop).
Updating docs...
There are times when we need to handle different logic based on the result of userChoice.