Android <-> iOS direct communication (Bluetooth). Is it possible? [duplicate]

旧时模样 提交于 2019-11-29 21:04:43

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

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: 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: 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.

iOS does not implement any standard Bluetooth protocols that would allow it to communicate with other OS'es. GameKit is proprietary and if it were easy to hack it then people would have already done so (and Apple would have closed the hole).

Bluetooth LE is only supported by few Android devices (it is not in AOSP yet) so it is not really useful yet, even if it did support peer-to-peer.

I've read that it is possible to do what you are after via Wi-Fi direct, e.g. with this library: https://www.alljoyn.org/ It says that it supports both Android & iOS - I haven't tried it myself, but it appears to do what you are after.

Caleb

For devices on the same local network, Bonjour (a.k.a. zeroconf) can be a good way for processes on different machines/devices to discover and interact with each other.

See apple bonjour for android for some pointers to an Android implementation of Bonjour.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!