We integrated RTCMultiConnection Demos cordva code in iOS app and also add iOS native code into it. need to confirm one thing that how it will be linked with our web code i.e if i will call from my IOS app then how it will get connected within my website . Please confirm if possible and how.
Thanks in Advance plus Happy New Year
Your cordova app sets socketURL:
connection.socketURL = 'https://domain.com:9001/';
Your cordova app has a file named as loadRTCMultiConnection.js. This file MUST be using same RTCMultiConnection distribution as the your web page.
Conclusion:
socketURL
parameterRTCMultiConnection.js
Explanation:
socketURL
is used to access your socket.io server. Both cordova app and web-browsers are using same socket.io server.Updated at Jan 03, 2017
To use Firebase in the RTCMultiConnection-cordova-apps:
index.html
and replacesocket.io.js
withFirebase.js
<script src="js/globals.js"></script>
<script src="js/FirebaseConnection.js"></script>
connection.setCustomSocketHandler(FirebaseConnection);
connection.firebase = 'webrtc-experiment';
To recap it:
and:
PS. You may need to modify config.xml to enable websocket or XHR_polling requests from
firebase.com
. Simply replacertcmulticonnection.herokuapp.com
withfirebase.com
. E.g.