Wifi/Bluetooth Multiplayer on iOS and Android

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.

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

1 Like

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?

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'

[quote=“Dreamora”, post:4, topic: 479834]
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’
[/quote]

alljoyn?

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.

Access denied, Is it already ended ?

Hi,

I am a networking specialist and i have developed a number of Unity 3D plugins, please check them out at

https://www.assetstore.unity3d.com/#/publisher/2280

Many Thanks,

this plugin support wifi networks on android. and IOS in next versions.
https://www.assetstore.unity3d.com/en/#!/content/57537

look at here
https://www.assetstore.unity3d.com/en/#!/content/57537

For iOS, I've recently released Local Multiplayer for iOS/tvOS/macOS, an asset that supports both Bluetooth and peer-to-peer WiFi for local multiplayer. Check it out!
https://www.assetstore.unity3d.com/en/#!/content/88666?aid=1101lHUy&pubref=unityforum

1 Like