Browse Source

Add support for NSBluetoothAlwaysUsageDescription (iOS 13)

Mathieu Acthernoene 5 years ago
parent
commit
ff797bc54e

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

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