iOS 中的地理围栏限制
Geofencing Limits in iOS
我对 iOS 中的地理围栏限制有疑问。
我正在为烟店开发一个应用程序。地点加起来大约有 200 个。
我想让用户 'automatically' 在距离商店几英尺远时签到。
Apple 施加的限制是 20。
Regions are shared resources that rely on specific hardware capabilities. To ensure that all apps can participate in region monitoring, Core Location prevents any single app from monitoring more than 20 regions simultaneously. To work around this limitation, monitor only regions that are close to the user’s current location. As the user moves, update the list based on the user’s new location.
如文档中所示,Apple 建议开发人员在用户更新 his/her 位置时更新 20 个区域的列表。
想到三个问题。
文档说 "Core Location prevents any single app from monitoring more than 20 regions simultaneously."。这是否意味着,作为开发人员,我只能在 20 个位置设置我的应用程序区域?因为我有 200 个位置(200 个客户希望在他们的商店周围拥有此功能)。
Apple 提供了解决该限制的方法。这是否意味着 20 个区域限制仅适用于应用程序用户?这是否意味着我可以设置 200 个位置,但用户只会看到离他们最近的 20 个可以签到的位置?
当我有 10 个用户使用我的应用程序并且他们拥有超过 20 个位置的区域时会发生什么?
1 - 这意味着您的应用可以跟踪 20 个地理围栏。如果您想跟踪 200 个地理围栏,您可以始终跟踪 20 个最近的区域。您需要创建一个策略来更新您的地理围栏列表。例如,您可以在 enter/leaving your geofences. Or can you update them in background when executing a background fetch.
时更新 20 个关闭的地理围栏
2 - 地理围栏与地图区域不同。您可以在地图中显示任意多的区域(例如使用 mapkit)。
3 - 地理围栏限制由设备指定。每个用户最多可以跟踪 20 个地理围栏。
我对 iOS 中的地理围栏限制有疑问。
我正在为烟店开发一个应用程序。地点加起来大约有 200 个。
我想让用户 'automatically' 在距离商店几英尺远时签到。
Apple 施加的限制是 20。
Regions are shared resources that rely on specific hardware capabilities. To ensure that all apps can participate in region monitoring, Core Location prevents any single app from monitoring more than 20 regions simultaneously. To work around this limitation, monitor only regions that are close to the user’s current location. As the user moves, update the list based on the user’s new location.
如文档中所示,Apple 建议开发人员在用户更新 his/her 位置时更新 20 个区域的列表。
想到三个问题。
文档说 "Core Location prevents any single app from monitoring more than 20 regions simultaneously."。这是否意味着,作为开发人员,我只能在 20 个位置设置我的应用程序区域?因为我有 200 个位置(200 个客户希望在他们的商店周围拥有此功能)。
Apple 提供了解决该限制的方法。这是否意味着 20 个区域限制仅适用于应用程序用户?这是否意味着我可以设置 200 个位置,但用户只会看到离他们最近的 20 个可以签到的位置?
当我有 10 个用户使用我的应用程序并且他们拥有超过 20 个位置的区域时会发生什么?
1 - 这意味着您的应用可以跟踪 20 个地理围栏。如果您想跟踪 200 个地理围栏,您可以始终跟踪 20 个最近的区域。您需要创建一个策略来更新您的地理围栏列表。例如,您可以在 enter/leaving your geofences. Or can you update them in background when executing a background fetch.
时更新 20 个关闭的地理围栏2 - 地理围栏与地图区域不同。您可以在地图中显示任意多的区域(例如使用 mapkit)。
3 - 地理围栏限制由设备指定。每个用户最多可以跟踪 20 个地理围栏。