Android的< - > iOS的直接通信(蓝牙)。可能吗?蓝牙、直接、通信、LT

2023-09-05 05:58:27 作者:限量版旳青春

首先,我是一个Android开发这样的问题去所有的iOS开发者。

First of all I am an android developer so the question goes to all the iOS developers.

是否有可能实现一个Android<? - > iPhone / iPad的直接通信 有些人声称这是不可能的,一些人声称它是。

Is it possible to achieve an Android <-> iPhone/iPad direct communication? Some claim it is not possible, others claim it is.

我想两个可能的技术是蓝牙和/或WiFi直接。 的wifi直接不建议,因为它不支持姜饼和AFAIK它并没有从iPhone支持的任何的(也许iphone6​​因为我从听到的传闻)

I guess two possible technologies would be bluetooth and/or wifi-direct. wifi-direct is not recommended because it is not supported by gingerbread and afaik it is not supported from iphone either (maybe iphone6 as I have heard from rumours)

据已经知道,蓝牙通信iOS设备之间使用的的GameKit ,然后在这里是一个reference.

It is already known that bluetooth communication is achieved between iOS devices using GameKit and here is a reference.

我不明白的什么是如此特殊与的GameKit通信时? 是消息的包以某种方式与在开始和该消息的结尾额外的字节?精细,我们可以包装的消息在Android中以同样的方式! 是消息的加密?!如果是的话,我们能够解密他们的时候在Android设备接收他们?

I don't understand what is so special when communicating with gamekit?? Are the messages wrapped in some way with extra bytes on the beginning and ending of the message? Fine we can wrap the messages the same way in android! Are the messages encrypted?!! And if so could we decrypt them when they are received in an android device?

任何想法,解决方法或其他hackerish解决方案大多是欢迎的!

Any ideas, workarounds, or other hackerish solutions are mostly welcome!

推荐答案

有使用它你可以开发蓝牙应用三个框架可以在iOS的:

There are three frameworks available in iOS using which you can develop the bluetooth applications:

1。的GameKit :这是公开的框架。但是使用这个你只能建立只有两个iOS设备之间的通信。因此,有其自身的局限性这一框架。

1. GameKit: This is the publicly available framework . But using this you can only establish and communicate between only two iOS device. So this framework having its own limitations .

2。 BluetoothManager:这是。我用这个框架来发现非iOS设备专用的框架。我已经建立的连接也。但不能做到数据交换。我认为它仍处于开发阶段。对于参考,您可以参考this链接

2. BluetoothManager: This is private framework .I used this framework to discover the non iOS devices . I have established the connection also . But cant able to do the data exchange. I think it is still under development. For the reference you can refer this link

3。 CoreBluetooth:这也是公共框架。这只能发现BLE功能的设备。我已经成功地使用这对BLE功能的设备之间传输数据。

3. CoreBluetooth: This is also the public framework. This can only discover BLE enabled devices . I have successfully used this to transfer the data between the BLE enabled devices.