Test if the registered service worker can return a 200 response when it's offline by dispatching a fake fetch event to the service worker with simulating an offline environment. The install prompt will be shown only if the test passes.
N/A The spec says "How a user agent makes use of these installability signals to determine if a web application can be installed is left to implementers". This change is compatible with this guidance.
n/a
This will impact sites that already have manifest.json and a service worker but it's not offline capable. Those sites will need to cache and return a valid response in the offline environment to show the install prompt. In order to mitigate the risk of immediately losing the functionality, we will ship a warning message first to tell developers that the install prompt is going not to be shown in near future.
n/a
DevTools shows a warning message in the Application tab and console once the new check fails.
Same question for already installed web apps in general.Is this web exposed? Can pages detect if an install prompt was shown for them?
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b158d049-f594-44f6-b028-87cef1f33190n%40chromium.org.
Same question for already installed web apps in general.Is this web exposed? Can pages detect if an install prompt was shown for them?It was pointed out to me off thread that it is indeed web exposed: https://web.dev/customize-install/#beforeinstallprompt
On Thursday, February 4, 2021 at 6:25:44 AM UTC+1 Masataka Yakura wrote:Does the change affect already-installed WebAPK apps with empty fetch handlers?
LGTM2
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEgH4gvbOWMx6SbpOhC2xUZao1KqZF8EVX%2BkLtOq5MyDxA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5c4c7e19-6e9b-55b8-f706-7f8158097593%40gmail.com.
Same question for already installed web apps in general.Is this web exposed? Can pages detect if an install prompt was shown for them?It was pointed out to me off thread that it is indeed web exposed: https://web.dev/customize-install/#beforeinstallpromptYes, you're right. Thanks for the link!On Thursday, February 4, 2021 at 6:25:44 AM UTC+1 Masataka Yakura wrote:Does the change affect already-installed WebAPK apps with empty fetch handlers?Thanks for asking.No, it doesn't affect already-installed web apps. We change the check which runs before showing the install prompt, but there's no such check after an app is installed.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/422507a7-d3b0-46f8-9c3c-6d653321bd06n%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5c4c7e19-6e9b-55b8-f706-7f8158097593%40gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3Dfwe3cLYJ-kLX_Un0D0jiXeVmyQD%2Bm3r%2BM55KHmUFZJ%2Bw%40mail.gmail.com.