Live data from Hacker News

Try Galaxy: A web app to demo Samsung’s OS on an iPhone

trygalaxy.com

21–30 of 180 posts

Re: Try Galaxy: A web app to demo Samsung’s OS on an iPhone

#24

It would be good to let android users and desktop users (even if only through changing user-agents) to browse the website. Even if I emulate the user-agent of an iPhone, it needs me to run it from the homescreen.

As said in a sibling comment, you can try it in a desktop browser (Chrome instructions below):

- open developer tools, Toggle device toolbar, pick an iPhone dimension

- Network > More network conditions ("wifi" icon) > User-agent > Custom > "iPhone Safari"

- in Sources, set a breakpoint on the 1st line, refresh the page, when the debugger breaks, type "window.navigator.standalone = true" in the Console, and continue

Re: Try Galaxy: A web app to demo Samsung’s OS on an iPhone

#26
post #14
post #9

Earlier quoted context omitted.

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.

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.

Re: Try Galaxy: A web app to demo Samsung’s OS on an iPhone

#30

It's restricted to Safari on the iPhone, the language cannot be changed, the demo cannot launch, and I have an iPhone for a reason, I know that I don't like Android and Samsung. The fact that it's broken confirms it. I don't know what they are trying to do with this.

A trashy web app being broken confirms you dont like android?
Post reply on HN