Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App store connect reject build because missing NSBluetoothAlwaysUsageDescription key

I use Xcode 10.3 to distribute my app. Then App store connect always reject the build. And I got an email said "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." I added the key "Privacy - Bluetooth Always Usage Description". But got the rejection yet. There was "Privacy - Bluetooth Peripheral Usage Description” already and it was ok since today. So how to resolve this?

like image 428
Yvan Avatar asked Sep 18 '19 11:09

Yvan


2 Answers

You'll need to add the purpose : Why your app requires Bluetooth to be enabled. Something like this :

<key>NSBluetoothAlwaysUsageDescription</key>
<string>App uses Bluetooth to find, connect and communicate with nearby devices. Please grant access.</string>
like image 166
iCoder Avatar answered Nov 11 '22 20:11

iCoder


The accepted answer is right but not full. You really need to add this key into your .plist file. But NSBluetoothAlwaysUsageDescription added in iOS 13+. If you target iOS below 13, you also need to add NSBluetoothPeripheralUsageDescription in addition to first key.

like image 6
Dmitriy Miyai Avatar answered Nov 11 '22 18:11

Dmitriy Miyai