gpt4 book ai didi

android - Flutter 后台定位访问

转载 作者:行者123 更新时间:2023-12-03 10:02:01 25 4
gpt4 key购买 nike

当我在 Google Play 上更新我的应用程序时,我看到了一条关于我以前从未见过的名为“敏感应用程序权限”的警告。它似乎与通话、短信、位置和文件访问权限有关。
Google Play Policy center / Permissions
Google Play 上的权限声明表说

Location permissions

Not started         Your app isn't compliant


我的应用程序使用 Flutter Location pluginFlutter Map plugin .我请求 INTERNETACCESS_FINE_LOCATION我的 list 中的权限:
    <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
进一步阅读 Requesting access to location in the background提供有关 Google Play 政策即将发生变化的更多信息:

Timeline for review and approval changes

Beginning September 30, 2020, we will start reviewing apps that request access to location in the background. If your app is impacted, you will be notified on the App content page (Policy > App content) in the Play Console to complete the permissions declaration form.

Beginning January 18, 2021, all new apps (first published after April 16, 2020) submitted to Google Play that access location in the background will need to be approved before they can go live.

Beginning March 29, 2021, all existing apps (first published before April 16, 2020) that access location in the background will need to be approved or they will be removed from Google Play.


那么,即使我没有为后台位置请求任何权限,或者在我的应用程序中主动做任何事情来访问它,我是否应该担心后台位置的使用?
我在运行 Android 7 的旧手机的状态栏中看到位置图标( map 针),即使应用程序在后台运行也是如此。我还在 Android 7 上看到了偶尔的“后台电池使用率高”。但在 Android 9 和 10 上,我还没有看到这种情况。
当应用程序“后台”时,我可能会草率地停止位置插件 - 但是,我没有请求任何后台位置权限,所以位置插件真的可以在后台收集位置数据 - 从而违反了 Google Play政策 - 没有它?

最佳答案

我将此添加到应用程序 list 中

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.localstore">
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" tools:node="remove"/>
source

关于android - Flutter 后台定位访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64150198/

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