HealthKit Error with retrieving step count data, error message: Unable to invalidate interval: no data source available

Our app has a feature that requires retrieving the user's step count data.

However, since September of last year, some users have reported that they are unable to retrieve their step count. Some of these users are on iOS 15, while others are on iOS 16. Additionally, some users have Apple Watch, while others do not.

Recently, we received an error log stating Unable to invalidate interval: no data source available. However, we are not trying to fetch a large interval of data at once, and the program has a maximum time interval.We are unable to find the problem.

We'd appreciate it if someone could help identify the issue. Thank you.

Post not yet marked as solved Up vote post of Will_C Down vote post of Will_C
597 views