-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with safari and chrome ios 13 #599
Comments
Its broken for Safari and has been broken for iOS Safari and Chrome for quite a while. DataChannel there doesn't support binaryBlob sending, while the util for these systems report it is supported. You have to introduce a custom fix. I did it and it works. For me, with current 1.1.0 version, desktop safari is also affected. |
What type of custom fix? |
This might be the problem for my #598 too. |
@riccag3 When connecting, the connection options, set serialization to 'json' (preferably only on Safari devices). Here is some sample code on how I did it:
|
@Niksac just when I came here to actually provide a fix code =) Thanks. As I know @afrokick is aware of the problem, and has even updated the docs to reflect the "only json" nature of Safari. However, I think, that we not only should inform the developers that they should use serialization = "json" for peerOptions to support Safari, we should allow binary format but for safari, fall back to a working approach in dataconnection.ts of the peerjs library. |
I tried to add this line but don't work, it does the same thing as before
|
Now it's working on Safari iOS but not Chrome iOS. my proj: https://edoctor-webapp.herokuapp.com/ |
how did you solved this ? |
Do you use HTTPS? are you on same NAT? |
yes. i use https here is my demo https://d3avcu2s7x6wu3.cloudfront.net/f/index.html it works with PC but not with SP |
Check your log. You’ve got this error:
[Error] Failed to load resource: the server responded with a status of 404 () (socket.io<http://socket.io>, line 0)
https://d3avcu2s7x6wu3.cloudfront.net/socket.io/?EIO=3&transport=polling&t=N5AgvrZ
Check this: https://stackoverflow.com/questions/46151327/keep-getting-socket-io-eio-3transport-pollingt-lvm1sgo-404-errors-when-i-de
I fixed that putting on my domain:port on let io = io(‘https://domain:PORT/’<https://domain:port/’>) on app.js client.
When I used heroku app, I didn’t need to do that, check and tell me.
El 5 abr. 2020, a las 10:54, kojiro2ph <[email protected]<mailto:[email protected]>> escribió:
with
|
I can access mic & camera and watch me on ios and macos but cannot connect
|
As i said, on localhost and VPS hosting was needed -> io(domain:port),
Check it, please
Enviado desde mi iPhone
El 5 abr. 2020, a la(s) 14:16, kojiro2ph <[email protected]> escribió:
oh, i forgot to fix this error ><
i saw your original heroku
and i found that you use socket.io.js
so i include this into my app.js
but i saw your code but it seem
let socket = io()
are not used by any other places
do i need to use this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#599 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABINQTETSBK3FLWOSVSWQZLRLC4F7ANCNFSM4JSJXYDA>.
|
i solved it ! the way is i changed the peerjs version 0.3 to 1.1.0 : P https://d3avcu2s7x6wu3.cloudfront.net/f/test.html now it works PC SP ! |
Use PeerJS version 1.1.0, then it will work on iOS Safari Check here #662 (comment) |
Agree with you. I'll look at it again in the next versions. |
I got this problem over chrome and safari, both desktop and mobile, initially it start the IceConnection, but after it got queued, it just stays in that state, and do not connect in anyway. I tried to read into some of the issues of the Git, but even with the change of the code (added URLS, used configs from PeerJs) on connection with Safari still have the problem. Somebody have any advice that can help me with this problem?
The text was updated successfully, but these errors were encountered: