android - 世博会:我的应用因位置政策而被 Google Play 拒绝
问题描述
我的应用程序包含一个地图插件,它不需要用户位置权限。但是,Google Play 拒绝了它,因为我的应用不符合位置权限政策。
以下是我编写的代码,不需要用户位置。
import MapView from 'react-native-maps';
<MapView region={this.state.mapRegion}>
<MapView.Marker coordinate={this.state.marker} />
</MapView>
有没有人可以提供建议?谢谢你。
解决方案
请在您的 App.json(在 android 中)中添加 permissions=[] 并重试。
"android": {
"permissions": [],
"package": "com.xxxxxx.xxxxx"
}
推荐阅读
- python-3.x - pytest 和失败:不允许数据库访问,使用“django_db”标记,或“db”或“transactional_db”fixture 来启用它
- javascript - 意外的令牌,预期的 },即使所有的大括号都有匹配的对
- c# - 如何从父类的基类调用方法
- android - 如何修复 ProgressDialog 上的按钮对齐
- rust - 命名包含字符串“.rs”的 crate 是否有问题?
- javascript - AngularJS/Spring:为什么 [$http:baddata] 错误仍然出现,即使数据已成功添加到数据库?
- r - 如何识别R中行的部分重复
- javascript - 在 Javascript 中向过滤器函数添加条件
- logarithm - 定点中的 Log2 近似
- checkbox - mat-checkbox 可以用作 matStepperNext 吗?