react-native-health-connect icon indicating copy to clipboard operation
react-native-health-connect copied to clipboard

How can I synchronize data from HealthConnect so that any changes to the data automatically update the UI?

Open om1234ww opened this issue 1 year ago • 1 comments

Describe how can I implement an observer for HealthConnect?

om1234ww avatar Aug 23 '24 16:08 om1234ww

You can use headless js and WorkManager on Android to periodically run non-UI background tasks.

Here is the example:

https://github.com/matinzd/react-native-health-connect/commit/1f89c83fbb6983b5f774ddcd113c399bbefaef1f

matinzd avatar Aug 24 '24 18:08 matinzd