Hello everybody, today I need help.
I'm developing an app with React Native and Expo.
I'm having issues with the Pedometer included in "expo-sensors". The problem is, the function Pedometer.getStepCountAsync does not work in Android, the function returns "Getting step count for date range is not supported on Android yet". I've been reading about this issue and found out that it is an Expo problem, the function worked perfectly around Expo 32, but with the updates, it stopped working.
Does anyone know a workaround for this issue? Or does anyone know how to retrieve the steps the user has taken in the day (with this module or any other)? I would really appreciate any help!
March 26, 2021 Edit:
One year later, I didn't find a solution for this. I've seen the issue I opened on GitHub getting more comments about "I've got the same issue. If many people have this issue why don't they do something?", but no concrete answer (at least, since the last time I checked).
The most promising thing I found (but didn't test since I was moved from that project) was using the Google Fit API to record the steps the user takes. Hope this helps somebody, and if anybody ever finds a working solution, please leave it in the comments for everyone to see 😊