Skip to content

Commit 24d6904

Browse files
committed
Fix #590
1 parent 970907d commit 24d6904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/BluetoothPeripheral/RNPermissionHandlerBluetoothPeripheral.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ - (void)checkWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve
2929
return resolve(RNPermissionStatusNotAvailable);
3030
#else
3131

32-
if (@available(iOS 13.0, *)) {
33-
switch ([[CBManager new] authorization]) {
32+
if (@available(iOS 13.1, *)) {
33+
switch ([CBManager authorization]) {
3434
case CBManagerAuthorizationNotDetermined:
3535
return resolve(RNPermissionStatusNotDetermined);
3636
case CBManagerAuthorizationRestricted:

0 commit comments

Comments
 (0)