Detect if bluetooth is off and enable it

Ask, and ye shall receive.
Shauntee
Posts: 1
Joined: 07:52, 22 Jan 2016

Detect if bluetooth is off and enable it

Postby Shauntee » 07:55, 22 Jan 2016

How do you detect if the bluetooth is off on the device then prompt the user to enable it on app launch in phonegap?

User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: Detect if bluetooth is off and enable it

Postby micke » 19:07, 06 Feb 2016

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


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 30 guests