chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
788 stars 475 forks source link

[Help]: setLogLevel always request for permission #985

Closed beastoin closed 2 months ago

beastoin commented 2 months ago

Requirements

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.32.12

Flutter Version

3.24.1

What OS?

iOS

OS Version

iOS 17

Bluetooth Module

nrf52840

What is your problem?

Whenever calling for the setLogLevel, I see the request permission popup.

Logs

None.
chipweinberger commented 2 months ago

is this a new issue? only in 1.32.12?

chipweinberger commented 2 months ago

try 1.32.13

beastoin commented 2 months ago

yes man, I just saw that fixes. https://github.com/chipweinberger/flutter_blue_plus/blob/3abe40b3b86c3cc5084ff362599130bc6e091d66/lib/src/flutter_blue_plus.dart#L599

thanks!

beastoin commented 2 months ago

Ah man, @chipweinberger , what do you think about the default value of LogLevel ? I mean should we use INFO instead of DEBUG ?

As you know that if the application was published to user with default level as DEBUG, logs are expensived in term of resource, so the performance will be dramatically impacted.

thịnh