Desired spec: React Native app queries HealthKit data and then POSTs to DB
Building a React-Native app that will query a user's HealthKit data intermittently.
Aware that you can't interact with HealthKit while the phone is unlocked.
This thread How can I run background tasks in React Native? tells me that such functionality isn't possible currently with RN.
However, this is in the context of starting a background-timer. I'd like the app to perform the following steps
- Query HealthKit data for # of steps
- POST data to DB
Questions
Is this possible with React Native without writing some kind of native bridge? (Swift seems to have this capability somehow)
If not possible without writing a bridge, what about accessing the native pedometer?