So I am making an app which needs to detect when two phones are close (1-2meters or less) and transmit some small amount of information (some strings and such).
I have been looking at the Google Nearby Connections API. But i cant limit that to just work when the phones are within 1-2 meters. And it also drains a lot of battery and both of the phones need to both Advertise and Discover at once.
Does anybody here know how I could do it? Something like NFC, Bluetooth Low Energy or??
I have been looking at the Google Nearby Connections API. But i cant limit that to just work when the phones are within 1-2 meters. And it also drains a lot of battery and both of the phones need to both Advertise and Discover at once.
Does anybody here know how I could do it? Something like NFC, Bluetooth Low Energy or??