don / BluetoothSerial

Cordova (PhoneGap) Plugin for Serial Communication over Bluetooth
Other
1.07k stars 669 forks source link

How to disable the authority request dialog when enable the bluetooth #209

Closed ZengYJ closed 7 years ago

ZengYJ commented 8 years ago

In cordova-plugin-bluetoothle ,when initializing the bluetooth, a param such as {request:false} is used to disable the tip of authority request. How can I get the same function like in cordova-plugin-bluetoothle?

Thank you.

don commented 8 years ago

Can you send a screenshot of what you'd like to disable?

orenagiv commented 7 years ago

I think he was referring to this one: image

It appears if the device bluetooth is turned off.

don commented 7 years ago

I think you'll need to edit the source and add CBCentralManagerOptionShowPowerAlertKey get rid of this dialog. Try adding it here.

See a similar solution @H0rst has for another one of my Bluetooth plugins https://github.com/don/cordova-plugin-ble-central/issues/174#issuecomment-179775652