dotintent / react-native-ble-plx

React Native BLE library
Apache License 2.0
3.04k stars 508 forks source link

Read characteristic in background? #1227

Open lucasmrau opened 1 month ago

lucasmrau commented 1 month ago

Prerequisites

Question

Someone already tested using with background-fetch to read from a device connected in foreground?

Question related code

No response

contactsimonwilson commented 1 month ago

I'm not using background fetch but I am using react-native-background actions to keep a task running indefinitely on iOS and Android that pulls data from a ble device at roughly 15Hz and also subscribes to location updates.

lucasmrau commented 3 weeks ago

I'm not using background fetch but I am using react-native-background actions to keep a task running indefinitely on iOS and Android that pulls data from a ble device at roughly 15Hz and also subscribes to location updates.

Are you sending this to a database or saving locally in a state?

@contactsimonwilson