I'd like to know what's the best way to fetch pedometer data from the phone (especially Android). Firstly I thought I could run a task in the background and subscribe to the step sensor via react-native-universal-pedometer npm package but I found out that this is not possible in RN. Then I tried react-native-google-fit package where you can query steps data from date to date but the module is quite buggy. Is there a better way of fetching pedometer data as well as average walking velocity while maintaining battery efficiency?
↧