ios - Apple Geofencing 失败当位置服务设置 "only while using the app"

标签 ios iphone swift xcode geofencing

当用户在位置权限对话框中设置“仅在使用应用程序时”时,Apple 地理围栏不起作用。当他们选择“始终”时,应用程序地理围栏服务工作正常。我使用地理围栏来监视用户何时进入警报区域,当用户从位置服务权限对话框中选择“使用应用程序时”时它不起作用

我的问题是:具有地理围栏功能的应用程序是否需要用户将位置权限设置为“始终”才能使地理围栏正常工作?我们没有使用 iBeacons

问候 尼维里特

最佳答案

显然,对于任何基于区域的定位服务,您始终需要授权:https://developer.apple.com/documentation/corelocation/cllocationmanager/1620562-requestwheninuseauthorization

Apps cannot use any services that automatically relaunch the app, such as region monitoring or the significant location change service.

关于ios - Apple Geofencing 失败当位置服务设置 "only while using the app",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46455720/

相关文章:

iphone - 解密时 OSStatus -9809

ios - UIPrintPageRenderer 如何在 US-Letter 和 DIN-A4 格式之间切换

ios - 如何在不滚动 SwiftUI 的情况下显示整个列表

ios - 关闭应用程序并再次打开,然后 PopToRootViewController 无法在 swift firebase 中工作

ios - AVExportSession 在后台运行

iphone - 设置默认的 UIScrollView 比例

ios - 将 Mapkit 设置为仅包含城市名称的位置

ios - UICollectionView 中的 viewForSupplementaryElementOfKind 返回 nil 并使用 swift 使应用程序崩溃

iphone - NSDateComponents 格式问题

iphone - 使用 NSDictionary 内容创建 NSManagedObject