top | item 35886333

(no title)

vbitz | 2 years 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.

discuss

order

jeroenhd|2 years ago

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.

prhrb|2 years ago

can you explain more about manually setting a breakpoint. I am little noob

cthulberg|2 years ago

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.