博览会删除权限位置

时间:2020-10-26 17:13:08

标签: android typescript permissions expo

我尝试将我的应用发布到google play商店上,但他们说我不能,因为我使用位置信息,但我从未使用过。

如果我制作了一个应用程序捆绑包,并使用Android Studio打开了该捆绑包,则会在清单上找到它:

[...]
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
[...]
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
[...]

我应该如何删除它?以及如何知道它在哪里使用?

我的package.json:

"dependencies": {
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/netinfo": "5.9.2",
    "@react-navigation/drawer": "^5.9.0",
    "@react-navigation/material-bottom-tabs": "^5.2.16",
    "@react-navigation/native": "^5.7.3",
    "@react-navigation/stack": "^5.9.0",
    "@types/react-native-snap-carousel": "^3.8.2",
    "expo": "~38.0.8",
    "expo-barcode-scanner": "~8.2.1",
    "firebase": "7.9.0",
    "react": "~16.11.0",
    "react-dom": "~16.11.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
    "react-native-barcode-builder": "^2.0.0",
    "react-native-circular-progress": "^1.3.6",
    "react-native-gesture-handler": "~1.6.0",
    "react-native-paper": "^4.1.0",
    "react-native-reanimated": "~1.9.0",
    "react-native-safe-area-context": "~3.0.7",
    "react-native-screens": "~2.9.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-svg": "^12.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.8.6",
    "@types/react": "~16.9.41",
    "@types/react-native": "~0.62.13",
    "typescript": "~3.9.5"
  },

1 个答案:

答案 0 :(得分:0)

加入文件 app.jeson 空数组[]

"android": {
      "useNextNotificationsApi": true,
      "package": "",
      "permissions": [],
  }