how to get current distance between iPhone and paired Apple Watch

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


You technically can't get the exact distance, but you can make one device act as a beacon and work on their Core Location proximity. You have up to three proximity states on which you can check the distance: CLProximityImmediate (ie the device are very close to each other), CLProximityNear (ie the devices are close to each other) and CLProximityFar (ie the devices are about to lose Bluetooth connection).

链接地址: http://www.djcxy.com/p/86886.html

上一篇: 打字稿方

下一篇: 如何获得iPhone和配对Apple Watch之间的当前距离