Browse Source

Add support for NSBluetoothAlwaysUsageDescription (iOS 13)

Mathieu Acthernoene 5 years ago
parent
commit
ff797bc54e
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      ios/BluetoothPeripheral/RNPermissionHandlerBluetoothPeripheral.m

+ 4
- 1
ios/BluetoothPeripheral/RNPermissionHandlerBluetoothPeripheral.m View File

@@ -13,7 +13,10 @@
13 13
 @implementation RNPermissionHandlerBluetoothPeripheral
14 14
 
15 15
 + (NSArray<NSString *> * _Nonnull)usageDescriptionKeys {
16
-  return @[@"NSBluetoothPeripheralUsageDescription"];
16
+  return @[
17
+    @"NSBluetoothPeripheralUsageDescription",
18
+    @"NSBluetoothAlwaysUsageDescription",
19
+  ];
17 20
 }
18 21
 
19 22
 + (NSString * _Nonnull)handlerUniqueId {