Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Wifi/Bluetooth Multiplayer on iOS and Android

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

  1. SalvadorLimones

    SalvadorLimones

    Joined:
    May 11, 2012
    Posts:
    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

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    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
     
    Sanath_Bharadwaj likes this.
  3. SalvadorLimones

    SalvadorLimones

    Joined:
    May 11, 2012
    Posts:
    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

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    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

    Joined:
    Nov 15, 2010
    Posts:
    1,080

    alljoyn?
     
  6. Tomo-Games

    Tomo-Games

    Joined:
    Sep 20, 2010
    Posts:
    223
    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

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

    RichBoy

    Joined:
    Mar 11, 2014
    Posts:
    5
  9. rahgozar

    rahgozar

    Joined:
    Apr 29, 2015
    Posts:
    4
  10. rahgozar

    rahgozar

    Joined:
    Apr 29, 2015
    Posts:
    4
  11. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Last edited: Jun 29, 2017
    Griffo likes this.