horizon icon indicating copy to clipboard operation
horizon copied to clipboard

Blank on iphone/Safari

Open GenericUK opened this issue 8 years ago • 13 comments

EXAMPLE CHAT APP BLANK ON IPHONE

I've installed the latest versions of everything today. I started a ngrok session and works fine on desktop and Android but its blank on iphone. The page loads and body css works but the chat app js is not loading.

GenericUK avatar May 26 '16 16:05 GenericUK

Is it possible to run it in an emulator and see what the console output is?

deontologician avatar May 26 '16 16:05 deontologician

I'm on Ubuntu, is there one you can suggest?

GenericUK avatar May 26 '16 16:05 GenericUK

I was thinking maybe xcode or something might do it. It's hard to debug when there isn't a message :/

deontologician avatar May 26 '16 22:05 deontologician

It looks like I can't get Xcode without OSX. If I start another ngrok session could it then be tested from yours or another remote emulator?

GenericUK avatar May 27 '16 09:05 GenericUK

Slava says at the end of his talk that it doesn't work on iPhone. https://youtu.be/Sb1lH5mvYmU

GenericUK avatar May 27 '16 11:05 GenericUK

I don't have an emulator myself (linux guy) but it looks like there's a thing called jconsole that can make console output visible: https://blog.idrsolutions.com/2015/02/remote-debugging-ios-safari-on-os-x-windows-and-linux/

deontologician avatar May 27 '16 14:05 deontologician

remote console.log link "Download the React DevTools for a better development experience: https://fb.me/react-devtools" "You are using the in-browser JSX transformer. Be sure to precompile your JSX for production - http://facebook.github.io/react/docs/tooling-integration.html#jsx"

GenericUK avatar May 27 '16 14:05 GenericUK

Thanks for the info, but jconsole doesn't show anything more than Chome dev tools

GenericUK avatar May 27 '16 14:05 GenericUK

:disappointed:

deontologician avatar May 27 '16 14:05 deontologician

@GenericUK which chat app are you trying to run?

guilhermedecampo avatar Jun 16 '16 19:06 guilhermedecampo

We probably need to check if this is still the case

deontologician avatar Aug 27 '16 00:08 deontologician

I can confirm the same issue (Docker rethinkdb/horizon:v2.0.0 connecting to rethinkdb:2.3 and also using "latest").

In Safari (I'm on a 10.11.6) when trying the default chat from http://horizon.io/docs/getting-started/ you get a blank page, when trying the Vue chat from https://github.com/rethinkdb/horizon/tree/next/examples/vue-chat-app the HTML text is not rendered and the input box does not respond to the "enter key".

Safari's "developer console", game me a hint: "SyntaxError: Can't create duplicate variable that shadows a global property: 'app'"

If I change the variable name in this line (app.js):

"const app = new Vue({"

to something else (e.g. "const app2"), the problem goes away, I'm new to Horizon (literally 15 min.), not sure where the overlapping is coming on the other side, perhaps because the default project name is also "app"?

Very interesting project, thanks to all who have contributed.

ghost avatar Feb 20 '17 09:02 ghost

@isaacuribe Awesome! It works for me.

KylinWu avatar Apr 14 '17 05:04 KylinWu