Page 1 of 1
How to detect if bluetooth is enabled in phone?
Posted: 16:13, 09 Dec 2014
by kungjohan
Is there a api call in easyble.js to check if bluetooth is enabled in phone settings?
And if it is not enabled can you enabled it by an addional call?
Re: How to detect if bluetooth is enabled in phone?
Posted: 14:33, 10 Dec 2014
by Fredrik
Normally, if Bluetooth is turned off and you call a Bluetooth function, the user gets asked to turn Bluetooth on. We have reports that, on iOS, this sometimes doesn't happen. We're looking into the issue.
Re: How to detect if bluetooth is enabled in phone?
Posted: 14:55, 10 Dec 2014
by kungjohan
I am running on Ios and I do not get any notification.
But if the expected behaviour is to get a popup I will have to wait for this fix.
I found that there was some other methods in the cordova plugin:
https://github.com/don/BluetoothSerialbluetoothSerial.isEnabled
I was thinking if there were something similar?
Re: How to detect if bluetooth is enabled in phone?
Posted: 15:36, 10 Dec 2014
by Fredrik
Well, we do include BluetoothSerial in our Evothings Client. You could use that.
Re: How to detect if bluetooth is enabled in phone?
Posted: 10:02, 18 Dec 2014
by kungjohan
Reading on the page
http://evothings.com/doc/studio/mobile-app.htmlIt seems like that plugin is only included in Android version.
Is there an instruction on how to add plugins to MacOs/Ios version?
Re: How to detect if bluetooth is enabled in phone?
Posted: 10:23, 18 Dec 2014
by Fredrik
Cordova plugins are added the same way on every platform, but iOS, unfortunately, does not support Classic Bluetooth for apps at all.