How to get the current distance between iPhone and paired Apple Watch

Is there a way to get the distance between the apple watch and the paired iPhone. I am working on a test case in which .. iPhone and Apple Watch should be notified when the distance between both devices has received a change.

+7
ios apple-watch
source share
1 answer

You technically cannot get the exact distance, but you can make one device act like a beacon and work with their proximity to the base location. You have up to three proximity states at which you can check the distance: CLProximityImmediate (i.e. the device is very close to each other), CLProximityNear (i.e. the devices are close to each other) and CLProximityFar (i.e. the devices about to lose their Bluetooth connection).

+4
source share

All Articles