Wifi/Bluetooth Multiplayer on iOS and Android

Discussion in 'Multiplayer Networking' started by SalvadorLimones, Jun 27, 2012.

  1. SalvadorLimones

    SalvadorLimones

    New Member

    Joined:
    May 11, 2012
    Messages:
    7
    Hi!

    We have a game for iOS and Android.

    We are looking for a way - any solution - that can make Service Discovery possible over both platforms.

    Two devices, of iOS or Android make in any two combination should be able to connect with one another for a real-time online multilayer game over Wifi. (maybe Bluetooth later).

    The solution should be robust, multiform and commercially proven.

    We are aware of AllJoyn but it doesn't have an iOS/Unity plugin yet to the best of my knowledge.

    Does Unity's built in networking API support Wifi/Bluetooth multiplayer?

    Anything similar to AllJoyn that works today? Bojour Android port?

    Prime31's Gamekit Multiplayer toolkit is for iOS only?


    Any help would be appreciated.
  2. Dreamora

    Dreamora

    Member

    Joined:
    Apr 5, 2008
    Messages:
    26,586
    GameKit is an iOS only feature so yes its iOS only.
    But on iOS its also the by far best solution cause it can be used for adhoc multiplayer and internet one if you want.

    From what you write though you want to use online multiplayer, then you don't need BT and you don't need GameKit, what you need is System.Net and then the TCP Socket or UDP Socket. Alternatively you can use unitys networking that works on all unity platforms out of the box, you could use lidgren that uses udp sockets under the hood or something like photon, ulink, ... which do so too but offer additional features
  3. SalvadorLimones

    SalvadorLimones

    New Member

    Joined:
    May 11, 2012
    Messages:
    7
    Thank you dreamora for your answer.

    I think we are looking for ZeroConf (dnssd) type solution, where an android device can talk to an iOS device over bluetooth or wifi ad hoc.

    Is there any unity plugin or any other solution to implement ZeroConf in an Android+iOS game?
  4. Dreamora

    Dreamora

    Member

    Joined:
    Apr 5, 2008
    Messages:
    26,586
    If you want adhoc networking, you will need to do it yourself and use the Bluetooth stack on both sides.
    GameKit is not compatible with anything but gamekit.

    I am at least up to now not aware of a solution that works on both sides as a fair amount of iOS devs don't care bout android and even less devs give a **** bout bluetooth for gaming due to the omnipresence of Wifi.

    Problem with wifi is that you can not build adhoc networks with it without gamekit, so you might be rather limited. Yet without gamekit you will have some probs on bt on ios too cause the user is forced to enable bluetooth before starting your game. Only gamekit is able to 'enable bt on the fly'
  5. ina

    ina

    Member

    Joined:
    Nov 15, 2010
    Messages:
    329

    alljoyn?
  6. Tomo Games

    Tomo Games

    Member

    Joined:
    Sep 20, 2010
    Messages:
    213
    Yeah AllJoyn (Unity Extension) P2P by Qualcomm currently supports Windows standalone and Android, iOS is TBA.

    Forgot to mention it's open source with Apache license!
    See https://www.alljoyn.org

    Update
    As of 3.0.2 looks like iOS and Mac OS is now supported.
    Last edited: Jan 3, 2013
  7. thienhaflash

    thienhaflash

    Member

    Joined:
    Jun 16, 2012
    Messages:
    200
    Access denied, Is it already ended ?
  8. RichBoy

    RichBoy

    Member

    Joined:
    Mar 11, 2014
    Messages:
    5