Simulating location changes for `startMonitoringSignificantLocationChanges`

后端 未结 3 1968
悲&欢浪女
悲&欢浪女 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:50

    To follow up on @Nevan-king answer as for why there are no updates when using startMonitoringSignificantLocationChanges

    See Apple Note for func startMonitoringSignificantLocationChanges()

    Apps can expect a notification as soon as the device moves 500 meters or more from its previous notification. It should not expect notifications more frequently than once every five minutes. If the device is able to retrieve data from the network, the location manager is much more likely to deliver notifications in a timely manner.

提交回复
热议问题