提问人:udiskie 提问时间:11/16/2023 更新时间:11/17/2023 访问量:14
未显示用户位置目的字符串
User location purpose string not being displayed
问:
我使用 expo/eas 构建了一个小型 react native 应用程序,并且正在将其发布到应用商店,但由于以下原因我被拒绝了:
“我们注意到,您的应用请求用户同意访问该位置,但没有充分说明在目的字符串中使用该位置。
为了帮助用户就如何使用其数据做出明智的决定,权限请求提醒需要解释并包含您的应用将如何使用所请求信息的示例。
我采取的措施是在我的App.json文件中添加目的字符串,但出于某种原因 当应用程序请求访问用户位置的权限时,它显示的目的字符串不是我在App.json中设置的字符串。以下是我来自 App.json 的“ios”属性的样子:
"ios": {
"config":{
"googleMapsApiKey":"MyGoogleMapsApiKey"
},
"supportsTablet": false,
"icon": "./assets/icon.png",
"bundleIdentifier": "com.goethedeveloper.apprecuerdos",
"infoPlist": {
"NSLocationAlwaysAndWhenInUseUsageDescription": "AppRecuerdos uses your real-time location only to detect the checkpoint you are in.",
"NSLocationUsageDescription": "AppRecuerdos uses your real-time location only to detect the checkpoint you are in."
},
"buildNumber": "12"
},
我希望有人能帮助我,亲切的问候:
答:
0赞
Juan Requena
12/14/2023
#1
您需要使用:
"infoPlist":
{
"UIBackgroundModes": [
"location"
],
"NSLocationAlwaysAndWhenInUseUsageDescription": "this app need access for xxxxxxx",
"NSLocationWhenInUseUsageDescription": "this app need access for xxxxxxx",
"NSLocationAlwaysUsageDescription": "this app need access for xxxxxxx"
}
评论