Grant the necessary Bluetooth permissions
Add the configuration to the Info.plist
file as below:
Add a row with the key
NSBluetoothAlwaysUsageDescription
. (To learn more, click here.)Add a description of what you will use Bluetooth for (e.g. Bluetooth required in order to connect to a scanner.)
To enable the background mode, add a row with the key
UIBackgroundModes
. (To learn more, click here.)Add
bluetooth-central
as a value for the first item in theUIBackgroundModes
array.