Skip to content

Commit ff797bc

Browse files
committed
Add support for NSBluetoothAlwaysUsageDescription (iOS 13)
1 parent 11fac08 commit ff797bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/BluetoothPeripheral/RNPermissionHandlerBluetoothPeripheral.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ @interface RNPermissionHandlerBluetoothPeripheral() <CBPeripheralManagerDelegate
1313
@implementation RNPermissionHandlerBluetoothPeripheral
1414

1515
+ (NSArray<NSString *> * _Nonnull)usageDescriptionKeys {
16-
return @[@"NSBluetoothPeripheralUsageDescription"];
16+
return @[
17+
@"NSBluetoothPeripheralUsageDescription",
18+
@"NSBluetoothAlwaysUsageDescription",
19+
];
1720
}
1821

1922
+ (NSString * _Nonnull)handlerUniqueId {

0 commit comments

Comments
 (0)