peerjs icon indicating copy to clipboard operation
peerjs copied to clipboard

Doesn't work with iOS

Open Bellisario opened this issue 4 years ago • 4 comments

Tested with more iOS versions (12, 14, 15 Public Beta) and it never works: it doesn't connect with other peer (each peer seems to work but doesn't connect or handle connection to other). The problem is that there isn't any error in the console (I used Aruda on iOS, too) and in peerjs errors, too (handled with alert that is the best option for iOS debug). The strange thing is that if I use the library with Chrome to Chrome (only on the computer version, I don't use mobile version) it works fine and connects without problem.

P.S.: I want to add that I used json serialization, as explained on README.

Bellisario avatar Aug 06 '21 14:08 Bellisario

Same problem. the listening side detects connection but the side that starts the connection never logs anything and simply doesn't function at all.

superwibr avatar Sep 14 '21 22:09 superwibr

Is there an alternative to peerjs? This repo has seen no new commit since several months.

guettli avatar Oct 03 '21 18:10 guettli

No, @guettli, unfortunately there isn't an alternative to peerjs that offers auto peer connection by just a name and real complete support for iOS (but, for now, peerjs doesn't work with it, too).

Bellisario avatar Oct 04 '21 14:10 Bellisario

@Bellisario Did you try to use the TURN server? Which version of PeerJS you use?

afrokick avatar Feb 20 '22 20:02 afrokick

Is there an alternative to peerjs? This repo has seen no new commit since several months.

try "simple peer" or "smoke" in github.

but, smoke not support "heartbeat" and "reconnect"

szcuipeng avatar Jan 10 '23 09:01 szcuipeng

Is this still a problem? It works on iOS for me and has so for the last versions of both PeerJS and iOS.

If yes, please help me reproduce this issue.

jonasgloning avatar Jan 17 '23 16:01 jonasgloning

@jonasgloning For me there is a issue, I just try this website to stream my smartphone stream to my desktop. https://glitch.com/~peerjs-video.

timootten avatar Mar 11 '23 19:03 timootten

Thanks, @MirSowasVonEgal.

I can reproduce this in part; your link doesn't work on iOS 15. I modified your Glitch slightly: upgraded PeerJS to the latest stable version, and switched to the public PeerServer. At least on my testing devices, it works now with video in both directions.

Does this work with your setup?

jonasgloning avatar Mar 13 '23 16:03 jonasgloning

It works, thank you.

timootten avatar Mar 14 '23 12:03 timootten

Perfect! I’ll close this, as it seems to work with recent PeerJS versions.

If someone experiences issues with a particular setup, please open a new issue.

jonasgloning avatar Mar 14 '23 12:03 jonasgloning