react-native-system-setting icon indicating copy to clipboard operation
react-native-system-setting copied to clipboard

switchWifiSilence and switchBluetoothSilence callbacks not being called

Open gstcyr opened this issue 5 years ago • 3 comments

For some reason when i try using switchWifiSilence or switchBluetooth silence, the service is turned on but the callback is never called.

gstcyr avatar Jul 19 '19 15:07 gstcyr

I believe this has to do with listenEvent only listening to the "EventEnterForeground" event which switchBluetoothSilence and switchWifiSilence never end up emitting.

gstcyr avatar Jul 19 '19 16:07 gstcyr

Does the example work fine ?

c19354837 avatar Jul 21 '19 06:07 c19354837

SystemSetting.switchBluetoothSilence(() => {console.log("hey")}); The complete is not called here. The bluetooth is turned on again but the complete is not called. I did not get this message.

usman-kakakhel avatar Aug 02 '19 07:08 usman-kakakhel