Using Core Location in Apple WatchKit

后端 未结 3 850
半阙折子戏
半阙折子戏 2021-01-06 06:09

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

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 06:53

    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.

提交回复
热议问题