- From: Jackie(Guokai) Han <notifications@github.com>
- Date: Fri, 21 Jul 2023 16:32:49 -0700
- To: w3c/manifest <manifest@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 21 July 2023 23:32:54 UTC
> In Safari - the start_url always loaded on launch after install I believe, so this isn't an issue there. Yes, this is the behavior I expect in my use case. > this should be possible to detect with the 'onappinstalled' event in Chrome, at which you can navigate the page. I read the chrome [official article](https://web.dev/customize-install/#detect-install) 2 years ago. But I didn't realize that this is a cancelable event from the article. Do you mean I should call the `preventDefault()` like below: ``` window.addEventListener('appinstalled', function(event) { event.preventDefault(); // cancel the default behavior, i.e. launch the app with current page }); ``` If so, after installation, I would like to turn the install button into the launch button, just like after installing an Android app in Google Play. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/manifest/issues/995#issuecomment-1646336156 You are receiving this because you are subscribed to this thread. Message ID: <w3c/manifest/issues/995/1646336156@github.com>
Received on Friday, 21 July 2023 23:32:54 UTC