Commit adf246fc by Sergei Lavinov Committed by GitHub

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

* Prevent popup asking to turn on bluetooth on iOS

* Update changelog

* Update apple package pubspec version
parent 61912318
## 9.0.6
* Prevent appearing popup that asks to turn on Bluetooth on iOS
## 9.0.5 ## 9.0.5
* Added new Android 13 NEARBY_WIFI_DEVICES permission to PermissionHandlerEnums.h * Added new Android 13 NEARBY_WIFI_DEVICES permission to PermissionHandlerEnums.h
......
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
- (void)initManagerIfNeeded { - (void)initManagerIfNeeded {
if (_centralManager == nil) { if (_centralManager == nil) {
_centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; NSDictionary *options = @{CBCentralManagerOptionShowPowerAlertKey: @NO};
_centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil options:options];
} }
} }
......
name: permission_handler_apple name: permission_handler_apple
description: Permission plugin for Flutter. This plugin provides the iOS API to request and check permissions. 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 homepage: https://github.com/baseflow/flutter-permission-handler
environment: environment:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment