Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent appearing popup that asks to turn on Bluetooth on iOS #924

Merged
merged 4 commits into from Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions permission_handler_apple/CHANGELOG.md
@@ -1,3 +1,7 @@
## 9.0.6

* Prevent appearing popup that asks to turn on Bluetooth on iOS

## 9.0.5

* Added new Android 13 NEARBY_WIFI_DEVICES permission to PermissionHandlerEnums.h
Expand Down
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
2 changes: 1 addition & 1 deletion permission_handler_apple/pubspec.yaml
@@ -1,6 +1,6 @@
name: permission_handler_apple
description: Permission plugin for Flutter. This plugin provides the iOS API to request and check permissions.
version: 9.0.5
version: 9.0.6
homepage: https://github.com/baseflow/flutter-permission-handler

environment:
Expand Down