Unity3D for iOS and Android: Multiplayer (Bluetooth Connection)

Oli picture Oli · Oct 23, 2012 · Viewed 36.4k times · Source

i'm looking for a way to connect two devices using Bluetooth in Unity iOS and Android Basic for Multiplayer-Gaming. I found:

  • AllJoyn by Qualcomm - Bluetooth works apparently only with Root-Android Devices and currently not with iOS.

  • iOS GameKit Local Multiplayer by prime31 - Only for iOS.

  • Bonjour Plugin by Gregzo - Not Bluetooth but a other local-multiplayer solution only for iOS.

  • TNet: Not Bluetooth, only for Android and iOS Pro

Has anyone any other solution (especially for Android)?

I would be grateful for any help. Also for other p2p-Unity-Solutions.

Answer

giacomelli picture giacomelli · Oct 30, 2012

For Ships N' Battles (a cross platform multiplayer game Unity authored) we have built several ways to perform a multiplayer game:

via Bluetooth (using Prime31 plugin)

  • iOS

I've never seen a game with multiplayer between iOS and Android using Bluetooth.

via LAN (using Unity RPC)

  • iOS
  • Android
  • Mac
  • Web (Kongregate)

The players can start combats in a Local Area Network with any of above devices: iOS vs iOS, iOS vs Android, Android vs Mac, and so on.

via Game Center (using Prime31 plugin)

  • iOS

Uses the Game Center multiplayer to match combats.

via Global Server (an in-house solution)

  • iOS
  • Android
  • Mac
  • Web (Kongregate)

The players can start combats around the world with any of above devices: iOS vs iOS, iOS vs Android, Android vs Mac, and so on.

For this solution we have built a online server, but you can use something like Photon.