iOS13處世以后介却,蘋果隱私授權(quán)提示有點(diǎn)改動祭芦,關(guān)于藍(lán)牙的使用
Dear Developer,
We identified one or more issues with a recent submission for App Store review for your app, "XXXX" 1.0 (7). Please correct the following issues, then upload again.
ITMS-90683: Missing Purpose String in Info.plist?- Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSBluetoothAlwaysUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).
Best regards,
The App Store Team
解決方案龟劲,文檔中說的和明確。
在Info.plist 文件中添加一下配置即可仰禀。
<key>NSBluetoothAlwaysUsageDescription</key>
<string>App需要您的同意,訪問藍(lán)牙來進(jìn)行配鎖</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App需要您的同意,訪問藍(lán)牙來進(jìn)行配鎖</string>