我-startMonitoringSignificantLocationChanges
在我的应用程序中使用。
后台应用
- (void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
方法调用。我想在 didUpdateToLocation 中调用 API(当应用程序在后台时)。当位置发生重大变化时调用上述方法。在那个方法中,我调用了我的 API。所有这一切都发生在后台,一切都很好。我想知道可以吗?我对苹果文档没有好主意。我认为这种方法苹果不会拒绝。任何人请给我一些想法。
谢谢