Hacker News new | ask | show | jobs
by vbitz 1138 days 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.

2 comments

That 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.

can you explain more about manually setting a breakpoint. I am little noob
Chrome 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.

Thanks