WebRTC using PeerJS - will it work with Android and IOS applications

We are making a WebRTC application using PeerJS for the web.

Server Side: NodeJS

Client Side: HTML5 / CSS / Javascript / Angularjs

We are there 90%, and it works fine in chrome firefox, but does not work in safari. I know that safari does not support WebRTC.

Is there any workaround to make it work in safari like any plugin?

My second question is: if I copy my web code and put it in phonegap or ionic, it will work on Android and IOS. I mean, now we made a chat using peerJS, which is exclusively javascript code, will work chat in the phone or ion applications on the Android and IOS platforms.

Please share your ideas, which is much appreciated. Thanks: -)

+4
source share
1 answer

For the first question : there is a plugin to make WebRTC work with Safari (and IE). You can look here to see the progress of PeerJS and the plugin.

For the second question : you can do it with Android (there must be some changes), but I don’t think it works. But you can check out the Crosswalk project and the PeerJS WebRTC library

Hope this help!

+2
source

Source: https://habr.com/ru/post/1605689/


All Articles