kenjdavidson / react-native-bluetooth-classic

⚛ Bluetooth classic Android(Bluetooth)/IOS(ExternalAccessory) module for serial communication
https://kenjdavidson.github.io/react-native-bluetooth-classic
MIT License
249 stars 93 forks source link

why the func-isBluetoothEnabled is always false, even thought the bluetooth is open and app has the permission of bluetooth #247

Closed raintoway closed 1 year ago

raintoway commented 1 year ago

Mobile Device Environment iphone12: actual device, ios 16 react-native: 0.68.0 react-native-bluetooth-classic: lastest

and i can't detect the state'change of bluetooth with onBluetoothEnabled

kenjdavidson commented 1 year ago

Can you provide code? Did you enable permissions? Did you provide the mfi protocols for your device? Ios requires protocols even if you're using just the status events. Have you attempted debugging?

raintoway commented 1 year ago

Can you provide code? Did you enable permissions? Did you provide the mfi protocols for your device? Ios requires protocols even if you're using just the status events. Have you attempted debugging?

sorry, my fault