如何使我的Android应用符合“背景位置政策" [英] How to make my Android app comply with the "Background Location Policy"

查看:51
本文介绍了如何使我的Android应用符合“背景位置政策"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在使我的应用符合新的"Google背景位置政策"方面遇到了一些麻烦.这是我的情况:

I have currently some troubles to make my app comply with the new "Google Background Location Policy". Here is my situation :

  • 我的应用程序的目标是Android Api 22及更高版本
  • 我的应用具有以下权限:ACCESS_FINE_LOCATION
  • 我需要此权限才能在应用程序处于前景状态时在地图上显示用户位置,并用于低功耗蓝牙
  • 应用处于后台状态时,我没有获取位置

我不知道如何设置Google Play控制台.我只能看到以下情况:

I don't understand how to setup the Google Play Console. The only cases I can see are the following :

  • 我的应用程序使用位置,可从API 29开始使用,但不需要ACCESS_BACKGROUND_LOCATION权限.
  • 我的应用程序不使用位置"并且没有任何* _LOCATION权限.

我不知道以下情况:

  • 我的应用程序从API 22开始可用,因此我没有ACCESS_BACKGROUND_LOCATION权限.但是我的应用程序需要在前景中具有位置权限并使用蓝牙,因此我需要ACCESS_FINE_LOCATION权限.我从不要求在后台定位.

我猜该应用程序已经符合后台位置政策"因为该应用仅获取前景中的位置.但是,由于这项政策,我的应用程序更新始终被拒绝,因此我有些困惑.

I guess the application already comply with the "Background Location Policy" since the app only fetch the location in foreground. However my apps updates are always rejected due to this policy, so I am a little bit confused.

为什么我的应用不符合要求?

Why my app do not comply ?

  • 是否仅是因为我的应用程序中存在ACCESS_FINE_LOCATION权限,并且默认情况下Google假设该应用程序请求位置位于后台?
  • 我是否需要将我的应用限制为Android 9及更早版本,以免卡在ACCESS_BACKGROUND_LOCATION权限的自动归因上?
  • 我是否需要在Google控制台中填写后台位置权限"表单,并说明我不在后台访问位置?
  • 还有什么?

感谢您的反馈.

推荐答案

在我的情况下,Google需要一个视频来显示在请求运行时权限之前显示了突出显示的内容.该视频需要上传到例如YouTube,并包含在Google Play控制台的应用程序内容"->权限声明"表格->视频说明"下.您还需要说明是什么触发了后台位置许可请求.

In my case, Google needed a video showing that the prominent disclosure was being displayed before requesting the runtime permission. The video needs to be uploaded to, say, YouTube and included in the Google Play console under App content->Permission declarations form->Video instructions. You also need to explain what triggers the request for background location permission.

这篇关于如何使我的Android应用符合“背景位置政策"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆