首页 > 解决方案 > 世博会:我的应用因位置政策而被 Google Play 拒绝

问题描述

我的应用程序包含一个地图插件,它不需要用户位置权限。但是,Google Play 拒绝了它,因为我的应用不符合位置权限政策。

以下是我编写的代码,不需要用户位置。

  import MapView from 'react-native-maps';

  <MapView region={this.state.mapRegion}>
    <MapView.Marker coordinate={this.state.marker} />
  </MapView>

有没有人可以提供建议?谢谢你。

标签: androidreact-nativepermissionsgoogle-playexpo

解决方案


请在您的 App.json(在 android 中)中添加 permissions=[] 并重试。


"android": {
    "permissions": [],
    "package": "com.xxxxxx.xxxxx"
      
    }


推荐阅读