In order for two phones to detect each other with BLE beaconing you need them to do two things:
- Advertise a beacon over BLE
- Scan for beacons over BLE
But flutter_beacon only does item 2 above. For item 1, you need another package. Try beacon_broadcast:
https://pub.dev/packages/beacon_broadcast
You need to do both at once.
If you use these, you can build a social distancing app on Android and iOS, but it will only work on iOS in the foreground as beaconing stops in the background on that platform.
2
solved Can flutter_beacon package be used to make Social Distancing app in Flutter?