Closed rlems closed 4 years ago
Hi @rlems , I will check it
Hi @rlems , I will check it
Thank you. Haven't found why this is happening yet.
@Francesco-Voto I think I've found the issue.
The customInterval
value passed to getSteps
is a String object and in the code it's compared to another String. 2 string objects are never the same by '==' comparison, see also https://www.geeksforgeeks.org/difference-equals-method-java/
Using .isEqual()
method would solve the problem.
I'll see if I can solve the problem and open a PR
Thank you @rlems ! I close it
I'm trying to get the steps in hours. It works for iOS, but not for Android devices. On Android it still returns the steps per day for me. If I manually alter the
node_modules/@ovalmoney/react-native-fitness/android/src/main/java/com/ovalmoney/fitness/manager/Manager.java
and setit does work.
This is my code:
And I call this function like this:
The resulting value of
res
isAny idea why this is happening?