The distance between Android and iphone

I am looking for a way to transfer data when two phones are nearby. This has to be a cross platform, so I cannot use NFC or iBeacon. I plan to use allJoyn to send information. I would only like to send data to others that are a few feet away from me.

Is there a way to get accurate distance reading on other phones? Or can I get the exact distance on the main unit that could be placed in the room?

+4
source share
2 answers

So the best way I found for this is to use an accelerometer to tell when two devices crash, then I get the bluetooth signal strength of the nearest device, if it falls into a certain value, then they touch each other.

0
source

Shot in the dark answer:

  • If both devices are on the same wireless WiFi network (the same subnet), then all devices on the same network are “fairly close”.

  • celluar ( Wi-Fi), API- , GPS-. -, / . - ( ).

+2

All Articles