ios - 应用程序的 Info.plist 文件应包含 NSBluetoothAlwaysUsageDescription key ,而该 key 位于 plist 文件中

标签 ios react-native info.plist

首先,我想声明我已经看过 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/

相关文章:

Ios React-Native 无法部署到应用商店获取 ITMS-90683 : Missing Purpose String in Info. plist

ios - 有没有一种 unicode 方法可以使字符串的一部分变为粗体?

ios - 在 iOS 中调用多个服务的更好方法是什么?

objective-c - 构建 UI 时循环内存管理

javascript - React-Native 在构建时找不到主项目文件

javascript - 在 React Native 中显示按钮和文本

ios - 在 iOS 中将数据存储在 plist 中

macos - 如何在不先启动的情况下将文件类型与 MacOS X App 关联?

iphone - 如何访问 UIImagePickerController 上的相机闪光灯?

javascript - React-navigation: "You should only render one navigator"- 但我只有一个