3 ms·
It works on desktop Chrome if you emulate a iPhone display and user agent. They're just detecting "add to Home Screen" by looking for window.navigator.standalo
by vbitz 3y ago
It works on desktop Chrome if you emulate a iPhone display and user agent.
They're just detecting "add to Home Screen" by looking for window.navigator.standalone which you can manually set using a breakpoint.
- prhrb 3y agocan you explain more about manually setting a breakpoint. I am little noob
- cthulberg 3y agoChrome DevTools -> Sources -> trygalaxy.com -> _next/static -> pages -> index_... -> CTRL + F and search window.navigator.standalone -> click on the dash to the right (a blue arrow will appear) and refresh the page The page will freeze, go to the Console, type window.navigator.standalone = true; and unfreeze the page clicking on the blue arrow.
- prhrb 3y agoThanks
- jeroenhd 3y agoThat explains why I couldn't get it to work on my Android phone despite spoofing the user agent. Kind of annoying, I was wondering what Samsungs's phone UI looks like these days but I guess they don't want my money. Samsung's marketing department can be weird like that for no well explained reason. Edit: found out that Kiwi browser allows access to the Chrome extension store and to the Chrome dev tools so I got it to work despite all of Samsung's best efforts.