Hauk icon indicating copy to clipboard operation
Hauk copied to clipboard

Launch the page fullscreen from home screen

Open maximbaz opened this issue 3 years ago • 3 comments

This allows to use "Add to Home screen" button in Chrome to create a shortcut in the launcher that opens Hauk map link like a real app, and not in the browser. Quite useful together with "Preferred link ID", it almost gives the impression of having two activities of Hauk app in my launcher, one (true Hauk app) manages the links and shares, the other one (thanks to this PR) is like an in-app map.

Haven't tested iOS meta tag, I just took it because it was also mentioned in the docs, so I thought why not.

https://developers.google.com/web/fundamentals/native-hardware/fullscreen/#launching_a_page_fullscreen_from_home_screen

maximbaz avatar Nov 08 '20 13:11 maximbaz

This is an interesting idea. I've had some problematic experiences with PWA in a previous project (caching-related), but this doesn't seem like it implements full PWA with a manifest file, rather just signals to the browser that the online page is app-like. Maybe this could be implemented for custom links only, so that the user isn't prompted to add a temporary link to their home screen. I could also make that setting configurable server-side. I will have to play around with this a bit and get back to your request.

bilde2910 avatar Nov 12 '20 10:11 bilde2910

Awesome! Just a note that this change doesn't prompt user about anything new, the only difference is that if they themselves save the link and later open the link, it will open as if in a separate app.

maximbaz avatar Nov 12 '20 10:11 maximbaz

Hello, what's blocking this from getting merged? I tested the change; it's not intrusive, browsers just offer the option to save a homescreen bookmark

noerw avatar Jun 20 '22 09:06 noerw