Page 1 of 1

Detect if bluetooth is off and enable it

Posted: 07:55, 22 Jan 2016
by Shauntee
How do you detect if the bluetooth is off on the device then prompt the user to enable it on app launch in phonegap?

Re: Detect if bluetooth is off and enable it

Posted: 19:07, 06 Feb 2016
by micke
Hi, the Bluetooth plugin will automatically ask the user to turn Bluetooth on if it is off.
There is however no function for detecting if Bluetooth is on, or for turning it on/off.
Created an issue for adding this functionality: https://github.com/evothings/cordova-ble/issues/86
Many thanks for the suggestion! Let me know if there is something else you feel should be added/supported.
Best regards, Mikael