Skip to content

Commit

Permalink
Prevent popup asking to turn on bluetooth on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lavinov-mercury committed Sep 27, 2022
1 parent 9ecea26 commit 50f86b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ @implementation BluetoothPermissionStrategy {

- (void)initManagerIfNeeded {
if (_centralManager == nil) {
_centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
NSDictionary *options = @{CBCentralManagerOptionShowPowerAlertKey: @NO};
_centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil options:options];
}
}

Expand Down

0 comments on commit 50f86b6

Please sign in to comment.