4

Is it possible to transfer files via iPhone hotspot i.e, iphone connected to a cellular network creates a wi-fi hotspot and one of the device is connected to that wi-fi and data transfer between these two devices over hotspot?

The iPhone has an app listening to some port or some medium through which the other device can send files to that iPhone app and record/save the files sent from the other device.

Any links or any information would be good if anyone of you can provide. Thanks.

Senthil
  • 148
  • 1
  • 9
  • Air-Drop is best to transfer file. – Kirit Modi Apr 27 '15 at 12:03
  • Yeah, I get that. But this is somewhat like recording voice from one device and transferring the data to the iPhone. The recording device might not be iOS device too. – Senthil Apr 27 '15 at 12:07
  • I don't think that Apple supports hotspot acess in their SDK. So far, Senthil's comment is the best answer you can get. – Michael Ortiz Apr 27 '15 at 12:18
  • @MichaelOrtiz Thanks. After hours of searching it over Apple, I almost felt the same. Just wondering if anyone has tried it out of the box. – Senthil Apr 27 '15 at 12:28

1 Answers1

1

So this finally worked pretty easily using Apple's Multipeer Connectivity Framework. Thanks to AppCoda's tutorial, here is the link: http://www.appcoda.com/intro-ios-multipeer-connectivity-programming/

This tutorial doesn't talk about Hotspot usage, but I figured out a way to use the same to transfer files using personal hotspot on iPhone.

Steps to reproduce:

  • Install the final product of the AppCoda's on two devices. (This might not work on Simulator for hotspot check, since no bluetooth via simulator)
  • Create hotspot on iPhone and connect the other device through the wi-fi created from iPhone.
  • Switch off bluetooth in one device and proceed with the app, browse for other device to connect.
  • Try to transfer files from one device to another through the hotspot connection.

Guess what? It worked for me. :) Go ahead. Try it out.

Senthil
  • 148
  • 1
  • 9
  • it is working only for video and image.. i want to send a txt. can i get a sample code – rd_ Oct 12 '16 at 02:47