So, my site detects if it’s being displayed in display-mode: browser
to show an install prompt but I want to allow them to open the app in standalone using URI handlers if the PWA is already installed, and webAPK is not relevant since I’m using ChromeOS.
I was looking for API’s only available to PWA’s but had no luck with that. I found methods that used the beforeinstallprompt
event, but I’d have 2 put all my code into it and even if I used an async function that resolved when the event fires it takes a while for it to fire so the user would notice the change.
I would prefer a synchronous approach but if that’s not possible I’d want a fast approach instead of waiting on beforeinstallprompt