I have a question about iBeacons in monitoring mode. I want to have an interaction with a notification being sent to a user if the device is in 1-2m vicinity to the beacon.
There used to be a function called:
var radius: CLLocationDistance { get }
It's now deprecated so there's no way to set range of the beacon region. So the different states inside, outside, unknown can't be configured. Most long range beacons have a region of more then 60m which makes the region to big for any interaction in your home.
What I had to do was to lower the power of the BLE chip I used via AT commands to -4hz. Now the span is around 3-4m, which is better bit still not what I want. I've tried tin jars to try to lower the signal even more but it doesn't make a big difference. Even tin foil around the BLE chip.
Have anybody found a way to specify a Beacon region? The proximity needed to have inside region to be triggered with this function:
func locationManager(_ manager: CLLocationManager, didDetermineState state: CLRegionState, for beaconRegion: CLRegion){}
Ranging mode doesn't seem to work in conjunction with monitoring so I can't use proximity which otherwise would be a solution.
func update(distance: CLProximity) {}