You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Oura app currently saves sleep heart rate data to Apple Health when the type is long_sleep. However, heart rate data recorded during naps, categorized under type of sleep, is not being saved according to API access at:
https://api.ouraring.com/v2/usercollection/sleep/
This results in a gap in the health data available to HeartBond users.
External References
For more context, Oura has acknowledged this issue in a Reddit post.
Proposed Solution
We aim to bridge this gap by offering a feature that allows users to save their nap-related heart rate data to Apple Health for viewing in HeartBond.
Technical Details
Data Similarity: Except for the type, the heart rate sample data for both long_sleep and sleep are identical.
User Permission: To implement this feature, we will request write access to Apple Health for users who opt-in to synchronize this specific data.
Implementation Steps
User Consent: Prompt users with a dialog box asking for permission to write nap data to Apple Health.
Data Retrieval: Fetch the heart rate data from Oura categorized under type of sleep.
Data Transformation: Convert the fetched data into a format compatible with Apple Health.
Data Sync: Write the transformed data to Apple Health under the appropriate category.
Benefits
Fills a data gap in Apple Health for users who take naps.
Provides a more comprehensive view of heart rate data for better health tracking.
Security Considerations
Ensure that the write access request clearly specifies the scope of data being synchronized.
Alternative Path
Instead of writing data to the Health data store, we could add it to our CloudKit-synced database and display it in the app. This would be a simpler implementation, but would not allow users to view their nap data in Apple Health.
We welcome feedback and contributions to make this feature as effective and secure as possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem Statement
The Oura app currently saves sleep heart rate data to Apple Health when the
type
islong_sleep
. However, heart rate data recorded during naps, categorized undertype
ofsleep
, is not being saved according to API access at:This results in a gap in the health data available to HeartBond users.
External References
For more context, Oura has acknowledged this issue in a Reddit post.
Proposed Solution
We aim to bridge this gap by offering a feature that allows users to save their nap-related heart rate data to Apple Health for viewing in HeartBond.
Technical Details
Data Similarity: Except for the
type
, the heart rate sample data for bothlong_sleep
andsleep
are identical.User Permission: To implement this feature, we will request write access to Apple Health for users who opt-in to synchronize this specific data.
Implementation Steps
type
ofsleep
.Benefits
Security Considerations
Alternative Path
We welcome feedback and contributions to make this feature as effective and secure as possible.
Beta Was this translation helpful? Give feedback.
All reactions