Replies: 3 comments
-
Same issue here. I want to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm doing the same thing in a +page.svelte, it fires haphazardly around 5% of the time. Not sure what the solution is right now. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've created an issue from this discussion here #11877 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an installable PWA (for sveltekit app). I want to add a custom button for installing the app. I placed my
window.addEventListener('beforeinstallprompt', (event) => { event.preventDefault(); //logic });
in the onMount of the +layout.svelte file. I have all other configurations correct, meets all installation criteria, and can be installed via the browser download option in the URL bar. However, my "beforeinstallprompt" does not get fired in the +layout.svelte. If I place it in app.html then it is fired but not in +layout.svelte. How should I fix this? What am I missing in my sveltekit app setup?Beta Was this translation helpful? Give feedback.
All reactions