Simulating location changes for `startMonitoringSignificantLocationChanges`

后端 未结 3 1959
悲&欢浪女
悲&欢浪女 2020-12-08 03:16

I am writing an iPhone app and using Location Services. I am using the startMonitoringSignificantLocationChanges method on CLLocationManager. (As

3条回答
  •  离开以前
    2020-12-08 03:49

    FWIW, the monitoring of significant location changes is tied almost exclusively to cell tower triangulation and handoffs. The way this is handled in the simulator is probably much different than it would be on-device. Even region monitoring get the added bonus of Wifi and other apps using location to get more frequent updates.

    I'm guessing this is just how the simulator works, even by passing in locations that are wildly far apart and should logically trigger, that just isn't how the updates are handled. There are no cell tower handoffs in the simulator, therefore no way to really test out the significant changes.

提交回复
热议问题