Multiplayer on native mobile apps?

0 favourites
  • 7 posts
From the Asset Store
The plugin allows you to open OS settings on iOS 8/9/10 and Android.
  • Hello,

    Did anyone tested if the multiplayer features work on native mobile apps(exported with cocoonjs or other ways)?


  • i think is too early to build multiplayer games on mobile. Present multiplayer must be tested and upgraded to work perfectly on desktops

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I believe the consensus was that multiplayer requires WebRTC, which CocoonJS doesn't support. Crosswalk, on the other hand, does, so you should be able to run such games on Android through Crosswalk, at least.

    From the blog post:

    [quote:28w1emqw]Which platforms are supported?

    Currently only Chrome 32+ and Firefox 27+ support interoperable WebRTC DataChannels. However this also includes the mobile browsers and other Chromium and Firefox based platforms, such as node-webkit, Crosswalk and Firefox OS. Hopefully other vendors who have Chromium-based platforms like Blackberry, Amazon and Tizen will also be able to add support by updating the version of Chromium they use. Other browsers such as Safari and Internet Explorer do not have any support yet, but as with all new web platform features, hopefully support will arrive in future.

  • The real trouble with getting this to work on mobile is the way a lot of mobile providers handle NAT on their cell towers.. sometimes all customers on one tower, or even on a cluster of towers get stuck behind the same ip. Even worse, depending on how they are set up, different servers see a different ip, depending on where they are.

    A peer-to-peer based approach will fail in a scenario like this, so you can only safely assume it works for people on their private wifi instead of outside in the wild via a mobile connection.

  • 1. I've had a few problems with CocoonJs.

    2. It may be possible to call UDP methods on iOS by extending Ejecta because you can call Objective-C methods by using it.

    I've made a tutorial on exporting C2 to Ejecta: Deploy your C2 game to iOS - The easy way. ... e-easy-way

    There's also a video, but it is a good first step. Make some history.

  • Both Chrome for Android and Crosswalk should support WebRTC. (Crosswalk is a version or two behind Chrome IIRC so may take a while to catch up to the version that works.) It won't be supported in CocoonJS or Ejecta (neither are real browsers).

    Peer to peer connections can happen just fine through cell data - there's nothing special about that type of Internet connection, except it transmits by long-range radio instead of cables or wifi. However restrictive types of NAT are probably more common with cell providers. We did test the multiplayer object with a phone connecting over HSPA and it worked fine, with only 20ms extra latency, so it's perfectly possible. I don't know if it would work well having cell data working as host though, especially since cell data can be more unreliable. It's the kind of thing that it's hard for us to test, especially since cell data varies from country to country, so it's interesting to hear how it works for people round the world.

  • Not looked at the multiplayer stuff yet, but i am assuming Node-webkit is supported ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)