1

Apple Watch series 2 has build-in GPS. I'm looking at latest SDK, i didn't find any API for that function.

My question: Can I track my path during swimming ( without iPhone ), which API i should use?

Qing Xu
  • 2,704
  • 2
  • 22
  • 21

1 Answers1

3

Core Location is the correct way to do this. The watch will automatically determine whether the phone is connected or not, and switch between the built in GPS vs the phone based on connection.

Trey
  • 356
  • 2
  • 10
  • If my phone is nearby, I'd rather start the tracking there and just report updates to the watch to display it. On a series 2 I'd ask the user where he wants to track? Phone or Watch. Is there a way to figure out if the watch I am currently running on even has a build in gps? – Georg Feb 14 '17 at 14:11
  • 1
    I'm afraid that there isn't a method of reliably determining whether you're on a watch with GPS, the only way that I'm aware to do this would be to either sniff out the device identifier (discouraged for obvious reasons) or do some combination of determining whether the phone is connected and whether core location is available (which is probably your best bet). – Trey Feb 15 '17 at 16:40