ekasetiawans / flutter_bluetooth_printer_plugin

MIT License
25 stars 47 forks source link

[iOS] App always asks Bluetooth permission right on it start #27

Open minhtritc97 opened 1 year ago

minhtritc97 commented 1 year ago

It asks the user for Bluetooth Permissions on App launch, without making any reference to the package methods in the Apps' code Expected: only ask for bluetooth permission if app call any method from the package.

hungthinhitj commented 11 months ago

the cause of this problem is from the 3rd package name flutter_scan_bluetooth,i fixed it package by moving CBCentralManager initialization to "handle" function in native swift code ( according to https://github.com/pauldemarco/flutter_blue/pull/599 )

image