Folllowing this thread: I've been doing some more tests, to see if the approach to use the cordova plugin "iosrtc" inside Multiplayer plugin is doable.
I've modified the Multiplayer "js" files to include the plugin and all his "stuff" (basically the initialization method to ensure that window.RTCPeerConnection is "implemented"), following the instructions of the "iosrtc" plugin.
Then I've exported my game as Cordova target and created a Cordova project in a Mac with OSX, Cordova and XCode installed, to compile for iOS and test inside the simulator.
But my problem is that the method "C2Multiplayer_IsSupported" is behaving "strange". I've checked why but I'm becoming mad because can't figure it out.
This is a screenshoot of a debugging session using the XCode iPad Simulator inside a Mac with OSX.
As you can see if I call "C2Multiplayer_IsSupported" it returns "false".
But calling the "expression" alone it returns "true"!!!
Can anybody explain me why?