Google Play控制台已更改政策,我开始收到这些奇怪的电子邮件,通知我我的应用已删除-
“我们仅允许应用访问允许使用的通话记录或SMS数据 并且仅启用该应用的核心功能。”
问题是我的app.json中没有任何这些权限请求,我也没有任何请求此类事情的库(我很确定)。
在我的app.json
的许可下,我尝试添加"ACCESS_COARSE_LOCATION"
而不是将其保留为空,因为我读到某个地方它阻止了expo请求默认(READ_SMS
)许可,但是它没有用。
此外,我看不到任何地方说lib响应上述电话权限之一的lib react-native-phone-call请求。
我的package.json:
{
"name": "empty-project-template",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
},
"dependencies": {
"@babel/preset-env": "^7.1.6",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@expo/vector-icons": "^8.0.0",
"aws-amplify": "^1.1.21",
"aws-amplify-react-native": "^2.1.7",
"axios": "^0.18.0",
"expo": "^32.0.0",
"firebase": "^5.5.7",
"lodash": "^4.17.11",
"moment": "^2.22.2",
"react": "16.5.0",
"react-moment": "^0.8.2",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react-native-confirmation-code-input": "^1.0.4",
"react-native-elements": "^0.19.1",
"react-native-fast-image": "^5.1.0",
"react-native-fetch-blob": "^0.10.8",
"react-native-linear-gradient": "^2.4.2",
"react-native-modal": "^7.0.2",
"react-native-modal-dropdown": "^0.6.2",
"react-native-phone-call": "^1.0.9",
"react-native-timer-countdown": "^2.0.3",
"react-navigation": "^2.17.0",
"react-redux": "^5.0.7",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
"typeface-raleway": "0.0.54"
},
"rnpm": {
"assets": [
"./assets/fonts/"
]
}
}
我的app.json
{
"expo": {
"privacy": "public",
"sdkVersion": "32.0.0",
"platforms": ["ios", "android"],
"version": "1.1.0",
"orientation": "portrait",
"icon": "./....png",
"splash": {
"image": "./assets/SplashScreen.png",
"resizeMode": "cover",
"backgroundColor": "#ffffff"
},
"facebookAppId": ".....",
"facebookDisplayName": "....",
"facebookScheme": "...",
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"buildNumber": "15",
"supportsTablet": true,
"bundleIdentifier": ".......",
"infoPlist": {
"LSApplicationQueriesSchemes": ["fbapi", "fb-messenger-share-api", "fbauth2", "fbshareextension"]
}
},
"android": {
"versionCode": 15,
"package": "....",
"permissions":[]
}
}
}
答案 0 :(得分:0)
它是一项购买Google的新政策,如果没有非常明确的权限,他们将不允许您在应用程序中进行电话通话和发短信,基本上,您必须是一个混乱的应用程序才能获得批准,他们会追溯地从商店中删除任何在其xml中具有许可,但不符合新规则
答案 1 :(得分:0)
您可以使用"permissions":[]
代替"permissions": ["WAKE_LOCK"]