首先,我想声明我已经看过 Stack Overflow post here添加 iCoder 和 Deepak 提到的任何一个都没有为我解决问题。
我正在使用 React-Native 来开发我的应用程序,包括这个 React-Native-Permissions我找到的包。他们的文档指出我应该添加他们的包启用的所有权限,例如位置、相机和那里提到的所有其他内容。完成此操作后,我可以将我的申请上传到商店并提交以供审核。
今天我到了办公室,看到苹果公司提供了一些反馈。因此,在我完成反馈后,我想再次重新上传到商店(按照我应该做的那样增加内部版本号)。
现在,当我将其存在于我的 info.plist 中时,我不断收到上述标题中的消息
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Our app does not request this permission or utilize this functionality but it is included in our info.plist since our app utilizes the react-native-permissions library, which references this permission in its code.</string>
编辑:
我希望澄清以下内容,以便找到我面临的问题的答案。标题中给出的错误在上传到商店后立即发生(所以我猜测实际的错误是由系统完成的自动检查发现的)。
下面的答案不会帮助我解决问题,因为自动系统检查不会检查更具描述性的字符串。我已成功将此字符串用于 info.plist 中的其他元素。接下来,我发现了证据表明人们使用这种策略成功地将他们的应用程序提交到应用程序商店。正如 Gradner 在这个链接 React Native Permission issue 266 之后的评论所示
最佳答案
如果您没有使用蓝牙,
只需将其添加到您的 Info.plist 文件中即可:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Our app does not request this permission or utilize this functionality but it is included in our info.plist since our app utilizes the react-native-permissions library, which references this permission in its code.</string>
Apple 已弃用 NSBluetoothPeripheralUsageDescription 属性,转而使用 NSBluetoothAlwaysUsageDescription。
查看详细信息: link to Apple docs
如果您使用蓝牙,
只需将其添加到您的 Info.plist 文件中即可:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Our app uses bluetooth to find, connect and transfer data between different devices</string>
关于ios - 应用程序的 Info.plist 文件应包含 NSBluetoothAlwaysUsageDescription key ,而该 key 位于 plist 文件中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57992330/