Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transfer data between iOS and Android via Bluetooth?

I've been reading up on how to transfer data between iOS devices over Bluetooth using GameKit. I'm not writing a game, per se, but do have a need to transfer a small amount of binary data between two devices. Between two iOS devices, this is easy enough. However, I was wondering if it is possible to transfer data between an iOS device and an Android device via the same mechanism.

Has anyone come across documentation/tutorial that would explain how to do this? Is it even technically possible? Or has Apple put in some sort of restriction that would prevent this?

The other option I discovered was Bonjour over Bluetooth. Would this be a more suitable option for this type of operation?

like image 436
Shadowman Avatar asked Sep 19 '13 01:09

Shadowman


People also ask

Can you transfer from iPhone to Android by Bluetooth?

Answer: A: Answer: A: By design, iPhones cannot transfer files to Android phones via Bluetooth.

Can you transfer data from iOS to Android?

USB cable - You can directly connect your iPhone and Android using your iOS cable and a MicroUSB to USB adapter. With this connection made, open Smart Switch on your Android and transfer data from your iPhone.

How do I transfer from iPhone to Android wirelessly?

What you'll need to do is connect both iPhone and Android mobile to the same Wi-Fi network, and then connect iPhone and Android through WiFi, finally select files on iPhone and send them to the Android phone wirelessly.


1 Answers

This question has been asked many times on this site and the definitive answer is: NO, you can't connect an Android phone to an iPhone over Bluetooth, and YES Apple has restrictions that prevent this.

Some possible alternatives:

  1. Bonjour over WiFi, as you mentioned. However, I couldn't find a comprehensive tutorial for it.
  2. Some internet based sync service, like Dropbox, Google Drive, Amazon S3. These usually have libraries for several platforms.
  3. Direct TCP/IP communication over sockets. (How to write a small (socket) server in iOS)
  4. Bluetooth Low Energy will be possible once the issues on the Android side are solved (Communicating between iOS and Android with Bluetooth LE)

Coolest alternative: use the Bump API. It has iOS and Android support and really easy to integrate. For small payloads this can be the most convenient solution.

Details on why you can't connect an arbitrary device to the iPhone. iOS allows only some bluetooth profiles to be used without the Made For iPhone (MFi) certification (HPF, A2DP, MAP...). The Serial Port Profile that you would require to implement the communication is bound to MFi membership. Membership to this program provides you to the MFi authentication module that has to be added to your hardware and takes care of authenticating the device towards the iPhone. Android phones don't have this module, so even though the physical connection may be possible to build up, the authentication step will fail. iPhone to iPhone communication is possible as both ends are able to authenticate themselves.

like image 102
allprog Avatar answered Sep 19 '22 09:09

allprog