7

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.

FelixSFD
  • 6,052
  • 10
  • 43
  • 117
Mak083
  • 1,160
  • 1
  • 13
  • 33
  • 1
    Currently watchkit does not support anything like that. – iOSNoob Jul 22 '15 at 13:04
  • 1
    But you can show whether it is paired or not. Check this for other info on this topic http://stackoverflow.com/questions/27793093/how-to-check-whether-iphone-and-apple-watch-are-connected – Vizllx Jul 22 '15 at 13:05

1 Answers1

3

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 (i.e. the device are very close to each other), CLProximityNear (i.e. the devices are close to each other) and CLProximityFar (i.e. the devices are about to lose Bluetooth connection).

Dree
  • 702
  • 9
  • 29