Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Fetch Steps with Minute Interval in Android #117

Open
anirudhkudikala1 opened this issue Apr 12, 2024 · 0 comments
Open

Unable to Fetch Steps with Minute Interval in Android #117

anirudhkudikala1 opened this issue Apr 12, 2024 · 0 comments

Comments

@anirudhkudikala1
Copy link

anirudhkudikala1 commented Apr 12, 2024

When attempting to fetch steps with a minute interval using the getSteps function in Android, the code execution stops at the getSteps method without any error being logged.
I am using @ovalmoney/react-native-fitness v0.5.3

export async function getSteps(fromDate, toDate) {
    const options = {
        startDate: fromDate, // required ISO8601Timestamp
        endDate: toDate, // required ISO8601Timestamp
        interval: "minute"
    };
    try {
        const data = await Fitness.getSteps(options);
        console.log("data", data);
        return data;
    } catch (error) {
        console.error("Error fetching steps:", error);
    }
}

Expected Behaviour:
The getSteps function should successfully fetch steps with a minute interval and log the data to the console.

Actual Behavior:
Code execution stops at the getSteps method without any error being logged.

Steps to Reproduce:

  1. Use the provided getSteps function with a minute interval in an Android environment.
  2. Attempt to fetch steps within a specific time range.
  3. Observe that code execution stops at the getSteps method without any error being logged.

Additional Information:
This issue occurs specifically when attempting to fetch steps with a minute interval.
No error messages are logged, making it challenging to debug the issue.
Steps are fetched with the days interval without any problem in both android and iOS.
Please respond as soon as possible as we are in active development phase and the app release date is near.
We have a requirement to fetch the data from last 10 days. But as a work around, I reduced the time and fetched the steps with minute interval of last one hour. It is working. Let me know if there is a data ceiling for steps with minute interval.

Environment:
Platform: Android
RN version: 0.71.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant