Search code examples
ioswatchkitapple-watch

Using Core Location in Apple WatchKit


I'm currently developing an apple watch extension. Anybody knows if the current location is provided by iPhone or Watch itself? I can't find any information about this and i need to draw a compass pointing where the watch is pointing.


Solution

  • In order to do what you want you don't need CoreLocation you just need a magnetometer.

    AFAIK the Apple Watch doesn't have one built in.

    The sensors it has are...

    • Accelerometer
    • Gyroscope
    • Heart rate sensor
    • Barometer

    No magnetometer though.