ios - 位置管理器区域监控

标签 ios geolocation cllocationmanager geofencing

我正在使用以下 apple clocation manager 区域监控方法:

- (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLCircularRegion *)region
{
}
- (void)locationManager:(CLLocationManager *)manager didExitRegion:(CLCircularRegion *)region
{
}

问题是当应用程序处于挂起状态且未运行时,这些方法不会被调用。任何帮助将不胜感激。谢谢

最佳答案

尝试使用显着的位置变化而不是开始更新位置。监控的半径也有限制,最小半径应为 100 米

关于ios - 位置管理器区域监控,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42859204/

相关文章:

ios - animationControllerForPresentedController 和 animateTransition 之间的自定义过渡动画未知延迟

javascript - 在类似于 Google Location History 的应用程序中检测 "unlikely"位置

cocoa - CLLocationManager 不适用于非无线连接?

iOS : Open my App Specific Location Settings

iphone - 为越狱的 iOS 设备开发应用程序?

ios - 在越狱的iOS中修复CA证书?

ios - 仅当某些特定的 iOS Swift 代码在 Debug模式下运行时,我如何才能运行它?

string - 将城市名称缩短为人类可读代码的算法

google-maps - 您会在数据库、坐标或地址中存储什么?

ios - LocationManager 调度队列问题