3

The problem is:

Having an Android device with turns on Personal Hotspot(WiFi/ad-hoc network).

Having an iOS device which connects to the Android's WiFi network.

Is there a possibility to exchange data between the same app build by a developer on both platforms?

If not, is there any way to exchange data between the same app running on both platforms using the current technologies on iOS and Android(so, without using internet connection or tech such as Near field communication)?

Already researched about data exchange using bluetooth which resulted in this.

Started researching about peer-to-peer connection but as its written on the first paragraph of the Multipeer Connectivity, it says "..by nearby iOS devices..".

(Android) Wi-Fi Peer-to-Peer

(iOS) Multipeer Connectivity

Community
  • 1
  • 1
Bardh Lohaj
  • 1,402
  • 1
  • 9
  • 17

1 Answers1

-1

Working on an application and there i am using the socket concept to send receive data from connected peer. All you need to do is

  1. Create hotspot network
  2. Allow nearby devices to connect
  3. Send broadcast message like we send in chat. e.g User joined. And in that message send file which you want to download.
  4. Other side in connected peer, Search file in local if exists use output stream to write the data and after writing the whole data just flush it to other side,
  5. Active listener will receive the data in input stream then.

Hope it helps.

Rahul Verma
  • 688
  • 5
  • 17