Google Play Expo w/ React - 在世博会的app.json文件中,Android的plist等效物是什么?



我正在获得Google play批准的应用程序发布,但由于收集敏感信息而被拒绝,在本例中为后台位置。我正在使用expo运行react native,我可以看到在ios中,app.json中有一个plist配置似乎可以解决其中的一些问题,但我不确定什么是android等效配置,所以我可以进行必要的更改。

谷歌声称:

App Bundle:15, App Bundle:14    Prominent disclosure not found
Your app must display a prominent disclosure through a pop-up alert before your app’s location runtime permission. Based on our review, a prominent disclosure did not appear before the runtime permission.
Remember, your prominent disclosure must:
Appear before your app’s location runtime permission.
Include at least the following sentence, adapted to include all the relevant features requesting access to location in the background in the app that are readily visible to the user: “This app collects location data to enable ["feature"], ["feature"], & ["feature"] even when the app is closed or not in use.” If you extend permitted usage to ads, please also include: “This data is also used to provide ads/support advertising/support ads.”

我假设我可以在app.json中插入一些类似于ios的plist的东西?

app.json

...
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.blah,blah",
"buildNumber": "1.1.0",
"infoPlist": {
"NSLocationWhenInUseUsageDescription": "Allow VolleyPal to use your location. Your location is used to check you in at the appropriate playground. Your location data are not used or stored in any other way or for any other purpose."
}
},
"android": {
"package": "com.blah.blah",
"versionCode": 16
},
"description": ""
}
}

对于android,您需要使用此权限后台执行一些操作。我尽量直截了当地向你解释。

编码部分

根据您的描述,您的应用程序请求了定位权限,此服务将用作后台。我不知道这是不是你需要做的一个重要过程,如果答案是肯定的,我建议你看看这里的链接https://developer.android.com/training/location/background,在这个页面中,它告诉您需要在AndroidMainfest.xml中放入什么类型的权限。在您的情况下,我认为所有这些权限ACCESS_COARSE_LOCATIONACCESS_FINE_LOCATIONACCESS_BACKGROUND_LOCATION(this is for background location in your case)都需要放在这个xml中。

同样,我不知道你是如何编码来请求权限的,我想它可能是使用react native library来完成的https://reactnative.dev/docs/permissionsandroid

谷歌播放中尊重过程的部分

在你完成了分开编码后,你需要制作权限声明表,这个链接告诉你如何做https://support.google.com/googleplay/android-developer/answer/9888170.

一旦你拥有了所有这些东西,还有两件事你需要做。

1.提供视频演示你必须提供一个短视频的链接,演示你的应用程序中基于位置的功能,该功能需要在后台访问位置(当应用程序未使用时(。

https://support.google.com/googleplay/android-developer/answer/9799150?hl=en#zippy=%2Cstep-提供突出的应用程序内披露%2分步提供视频演示

2.提供突出的应用内披露此步骤通常是经过验证的步骤,但对于如何共享位置数据有严格的规则。你需要核实关于申请许可的所有过程是正确的,并且在申请许可时已经很好地解释了措辞。举个例子,它会帮助你对它有清晰的认识。https://support.google.com/googleplay/android-developer/answer/9799150?hl=en#zippy=%2Cstep-提供突出的应用内披露

尝试将其添加到android 下的app.json中

"permissions": ["ACCESS_COARSE_LOCATION", "ACCESS_FINE_LOCATION", "ACCESS_BACKGROUND_LOCATION", "Permissions.LOCATION"],

这是我获得这些信息的链接。

你也填写了一份表格或类似的东西,关于你为什么想要用户的位置。(播放商店在上传apk后和提交审查前问我(

此外,当用户首次启动应用程序时,添加一个警报,您正在请求许可。(想想这就是你的应用程序被拒绝的原因(

最新更新