This is a React Native Foreground Service example app inspired by this issue on the react-native-ble-plx bluetooth package.
The intent of this app is to demonstrate how to do background bluetooth scanning using the Android Foreground Service.
- Uses react-native-background-job
- Simple setInterval
- option to start Foreground Service
- Writes timestamp to Redux store
- Calls bluetoothScan from react-native-ble-plx for devices
npm install --save react-native-ble-plx
react-native link react-native-ble-plx
react-native run-android