当用户在位置权限对话框中设置“仅在使用应用程序时”时,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/