code-server icon indicating copy to clipboard operation
code-server copied to clipboard

safari from ipad pro does not working...

Open kd0g opened this issue 7 years ago • 86 comments

i see just blank page.

kd0g avatar Mar 07 '19 15:03 kd0g

iOS 12.2, self-hosting on home server, latest release. Had the issues with the blank (black) screen until I installed and fixed all issues with my SSL certs. Works in both Safari and Chrome now. I believe iOS will refuse to run this (connect to the websocket) if your cert is not trusted or invalid, maybe that's what some of you are running in to. I ended up self-signing and then installing my own CA on the device. Just trying to help :)

mattriverm avatar Apr 15 '19 22:04 mattriverm

That's awesome @mattriverm. I'll definitely give this a try. Just to confirm though, did the arrow keys work for you. Were you able to open a file and move around in the code using the arrow keys with some sort of external keyboard?

maxjerin avatar Apr 16 '19 04:04 maxjerin

@mattriverm I tried the solution you suggested but I am still stuck at blank page

amittbhardwj avatar Apr 17 '19 23:04 amittbhardwj

@tmm1 Are you using safari or chrome? Also are you using an iPad Pro, or iPad. Finally, what version of iOS are you running? Thank you in advance

Chrome of Safari doesn't matter BTW. All browsers on iOS use WebKit. There should be 0 functional difference between the two.

lucacasonato avatar Apr 17 '19 23:04 lucacasonato

@mattriverm I tried the solution you suggested but I am still stuck at blank page

Do you still see the warning in this section in the docs? It does not matter if you proceed at that point. You need to resolve the cert issues it is reporting.

mattriverm avatar Apr 18 '19 12:04 mattriverm

Do you still see the warning in this section in the docs? It does not matter if you proceed at that point. You need to resolve the cert issues it is reporting.

No, i dont see any warning like that on safari or firefox

amittbhardwj avatar Apr 18 '19 14:04 amittbhardwj

I am hosting the code server(v1.868-vsc1.33.1) on my Mac mini, I got a blank grey screen while I am using my iPad Pro 11" w/ smart keyboard (iOS 12.2). When I tried again without smart keyboard, I got this screen (I hide my directory manually):

IMG_0035

The service work perfectly on MacOS safari but seems no luck for iOS Hope this can help on solving out!! Looking forward to bring my workflow on the go with this awesome work!!

hhhlau avatar Apr 19 '19 16:04 hhhlau

launches fine for me on iPad Pro iOS 12.3

only issues that remain are that damn arrow keys bug and the whole window bouncing when trying to scroll

E81AA626-3DF4-405E-B86F-8B8E8E98A59C

pourhadi avatar Apr 20 '19 03:04 pourhadi

I tried with iOS 12.3 but seems no luck. I got this warning keep coming from the code server console WARN stderr {"data":"/bin/sh: ioreg: command not found\n"}

and these from browser console `[Error] Failed to load resource: 無法完成作業。(kCFErrorDomainCFNetwork 錯誤 303。)

[Error] Cannot read file /Users/travis/build/codercom/code-server/packages/server/build/extensions/node_modules/package.json: undefined. _logMessageInConsole (ide.main.5508eb.js:67:314445) _logOrShowMessage (ide.main.5508eb.js:67:314614) (anonymous function) (ide.main.5508eb.js:67:309618) error (ide.main.5508eb.js:67:341421) error (ide.main.5508eb.js:67:341051) (anonymous function) (ide.main.5508eb.js:67:342839) promiseReactionJob

[Error] Failed to load resource: 無法完成作業。(kCFErrorDomainCFNetwork 錯誤 303。)

[Error] [IPC Library: File Watcher (chokidar)] Watcher is not using native fsevents library and is falling back to unefficient polling.

[Error] Activating extension 'vscode.extension-editing' failed: ENOENT: no such file or directory, open '/product.json'.

[Error] [Extension Host] Activating extension vscode.extension-editing failed: – "ENOENT: no such file or directory, open '/product.json'" – "(at newlyActivatingExtension._host.actualActivateExtension.then (/Users/travis/build/codercom/code-server/packages/server/build/bootstrap-fo…" ` any thought??

hhhlau avatar Apr 20 '19 08:04 hhhlau

Those errors are unrelated to the IDE not loading properly. I found that I was able to get the IDE to load when using the no-auth flag. iOS seems to block self signed certificates which seems to be the root cause of the issue. The certificates that are backed by a third party seem to work fine. We will keep looking into this because it is an very annoying bug.

nol166 avatar Apr 21 '19 16:04 nol166

Those errors are unrelated to the IDE not loading properly. I found that I was able to get the IDE to load when using the no-auth flag. iOS seems to block self signed certificates which seems to be the root cause of the issue. The certificates that are backed by a third party seem to work fine. We will keep looking into this because it is an very annoying bug.

no-auth will remove the authentication and then anyone can access my workspace. I don’t want that to happen. Is there a way to still use authentication on http ?

amittbhardwj avatar Apr 23 '19 00:04 amittbhardwj

Those errors are unrelated to the IDE not loading properly. I found that I was able to get the IDE to load when using the no-auth flag. iOS seems to block self signed certificates which seems to be the root cause of the issue. The certificates that are backed by a third party seem to work fine. We will keep looking into this because it is an very annoying bug.

Did Let's encrypt also counted as self-signing? As I am already pointing in the certs for the service already

hhhlau avatar Apr 23 '19 10:04 hhhlau

@amittbhardwj if you have a nginx or Apache web server running use basic authentication in the config file and start code server with the no with flag

anitricks avatar May 02 '19 08:05 anitricks

@hhhlau let’s encrypt certificates should work

anitricks avatar May 02 '19 08:05 anitricks

arrow key issue seems to be fixed in iPadOS

pourhadi avatar Jun 03 '19 22:06 pourhadi

I'm just seeing a black screen in my Ipad Pro with IpadOS. Anyone knows how can I fix it?

skurt23 avatar Jun 10 '19 14:06 skurt23

I am also having the same problem... Is this issue solved or will be solved in the future???

ghost avatar Jun 27 '19 04:06 ghost

FWIW my arrows are back with open beta of ipadOS 13. code-server, AWS c9, monaco and gitpod are all working fine. https://beta.apple.com/sp/betaprogram/

hakanu avatar Jun 27 '19 08:06 hakanu

I think I can reproduce the error con iPadOS. All work ok until I change nginx reverse proxy to add http basic auth. Then only back screen.

NGarate avatar Jun 30 '19 02:06 NGarate

@Ngarate I had the exact same issue. This is because while Desktop Chrome does pass http basic auth headers for websocket calls, Safari does not.

To resolve this, I disabled http basic auth and used the built in password option instead for now.

wei avatar Jun 30 '19 03:06 wei