No matter if the Bluetooth is switched on or off (both general settings and app settings) the state comes as false. Am I missing something?
import { BluetoothStatus } from 'react-native-bluetooth-status';
...
async checkBluetoothState() {
const isEnabled = await BluetoothStatus.state();
// false
}
this.subscription = bluetoothEvent.addListener(BT_STATUS_EVENT, state => {
No matter if the Bluetooth is switched on or off (both general settings and app settings) the state comes as false. Am I missing something?
When I inspect the
statein the line https://github.com/solinor/react-native-bluetooth-status/blob/master/index.js#L28stateisundefined