react-native-ble-manager
react-native-ble-manager copied to clipboard
[Question] Can iOS keep bluetooth connection in background mode?
I want to know if iOS can keep bluetooth connection in background.
Yes. It is possible to keep the BLE Connection alive in the background as well. You check out the code and try it out.
@SAAHIIIL Is it supported in this library by default? Could you indicate some part of code to demonstrate background working for BLE?
Interested also. We have added a listener for BleManagerModule NativeEventEmitter. However, seems like we are not getting any read event when the app goes into background.
+1
@riseworld27 The connection would be alive when in background, but your reads and writes would fail in that case, you would have to do reads and writes when the app is open.
But ble manager does have such methods but you can check this out.
https://developer.apple.com/library/archive/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothBackgroundProcessingForIOSApps/PerformingTasksWhileYourAppIsInTheBackground.html#//apple_ref/doc/uid/TP40013257-CH7-SW10