gpt4 book ai didi

ios - Apple 拒绝因为 UIBackgroundMode = location

转载 作者:技术小花猫 更新时间:2023-10-29 10:36:25 26 4
gpt4 key购买 nike

我提交了一个应用程序,它以用户选择的固定时间间隔(5 分钟、10 分钟、30 分钟、1 小时)跟踪用户的位置(并将其发送到服务器)。该应用程序也应该在后台运行(发送请求),我已将其声明为 UIBackgroundMode = location。我能够以这些固定的时间间隔在后台发送请求。 Apple 拒绝了它,建议如下:

We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.

We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.

It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.

For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.

If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:

"Continued use of GPS running in the background can dramatically decrease battery life."

如果我更改了重要的位置变化并从 Info.plist 中删除了 UIBackgroundMode 键,应用程序将在后台被杀死,并且只有在事件发生时才会唤醒。但是我必须每 5 分钟向服务器发送一次请求,例如我的应用程序在后台被杀死(假设用户没有移动并且事件不是 trigger = no 请求被发送到服务器) .

最佳答案

要解决此问题,您必须在 Itunes Connect 的应用说明中添加免责声明“继续使用在后台运行的 GPS 会显着降低电池生命周期。”

关于ios - Apple 拒绝因为 UIBackgroundMode = location,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12690459/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com