由于有后台位置访问权限,因此Google Play拒绝了应用更新(但我没有使用任何后台位置权限) [英] App Update is rejected from google play due to Background Location access (But I didn't use any background location Permission)

查看:743
本文介绍了由于有后台位置访问权限,因此Google Play拒绝了应用更新(但我没有使用任何后台位置权限)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在使用Flutter开发Courier服务应用.我的应用需要前台位置许可才能找到附近的Courier服务.我没有在应用程序中使用任何后台位置权限.

但是,当我尝试上传更新后的应用程序(我的应用程序的先前版本已经在Play商店中)时,它表明我获得了后台位置许可.这是我的应用程序更新版本的Play控制台应用程序屏幕截图:

这是我以前在Play商店中使用的应用的另一张屏幕截图:

这是来自Google的拒绝消息:

当我上传应用的第一个版本时,我还在应用的播放控制台上设置了位置权限设置.这是此屏幕截图:

,如果有此问题的必要,最后是发布软件包列表:

推荐答案

1修复(删除位置权限):

尝试将以下内容添加到您的 AndroidManifest.xml (android/app/src/main/AndroidManifest.xml):

Try adding the following to your AndroidManifest.xml (android/app/src/main/AndroidManifest.xml):

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" tools:node="remove"/>

这将确保即使其他插件将ACCESS_BACKGROUND_LOCATION权限添加到AndroidManifest.xml文件中,该权限也将被删除.请注意,对于那些确实依赖此权限的插件,这可能会触发意外行为.

This will make sure the ACCESS_BACKGROUND_LOCATION permission will be removed even when other plugins add it to the AndroidManifest.xml file. Note that this could trigger unexpected behaviour for those plugins that do rely on this permission.

如果您没有使用过任何工具",现在在您的AndroidManifest中,无需添加

If you haven't used any "tools" in you AndroidManifest right now, than you need to add

xmlns:tools="http://schemas.android.com/tools"

在清单标签中是这样的:

inside the manifest tag like that:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.[...].app">

来源: https://github.com/Baseflow/flutter-geolocator/issues/535#issuecomment-755996924 https://github.com/Baseflow/flutter-geolocator/issues/535#issuecomment-758410906

之后,无论哪个软件包(Flutter或Native)都想要为您设置此权限,您的APK/应用程序绝对将不再具有android.permission.ACCESS_BACKGROUND_LOCATION.

After that, your APK/appbundle will definitely not have android.permission.ACCESS_BACKGROUND_LOCATION anymore, no matter which package, whether Flutter or Native, wants to set you this permission.

2修复(从所有发行版中删除旧的APK/应用程序):

Google Play控制台不断拒绝您的更新吗?然后,这是可能的另一种可能的原因.要了解以下内容,我花了数周的挫败感:

Google Play Console keeps rejecting your updates? Then here is another possibility that may be the cause. To find out the following has cost me weeks of frustration:

如果仍然被拒绝,请在Google Play控制台中检查 App Content (左侧菜单的最后一个菜单项)下是否存在android.permission.ACCESS_BACKGROUND_LOCATION.>敏感的应用权限.如果是这样,那么您还可以在此处找到管理".Google从哪个应用程序版本获得此信息.如果此处触发的是旧版本,请检查发布渠道中是否仍然存在该版本(可能是内部测试或封闭测试).如果是,则将此处的版本替换为您当前的版本(在此处检查该版本不再具有此权限).如果相关的发布频道已暂停,也请!在其中一个发布渠道中处于活动状态的任何应用版本都必须没有后台权限,即使是暂停的渠道也是如此.现在,在Play商店中应用程序内容的敏感应用程序权限"中,您可以再次访问不访问后台权限的问题.

If it is still denied, then please check in the Google Play Console if the android.permission.ACCESS_BACKGROUND_LOCATION exists under App Content (last menu item in the left menu) and there in the Sensitive App Permissions. If so, then you can also find out here at "manage" from which app version Google has this information. If an older version is the trigger here, please check if this version still exists in a Release Channel (maybe Internal Test or Closed Test). If yes, then replace the version here with your current one, where you checked, that it no longer has this permission. Please also if the related release channel is paused! Any app version that is active in one of the release channels must be without the background permissions, even the paused channels. Now, in the Sensitive App Permissions at App Content in the Play Store, the question that you do not access the background permissions can be filled in again.

很抱歉,如果我在Play商店控制台中没有菜单项的确切英语措辞,因为我的Play商店设置为德语.

I'm sorry if I don't have the exact English wording of the menu items in the Play Store Console, as my Play Store is set to German.

这篇关于由于有后台位置访问权限,因此Google Play拒绝了应用更新(但我没有使用任何后台位置权限)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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