Search code examples
iosreact-nativehealthkit

Fake Step Data for Apple Health Kit in React Native Development


I'm developing a React-Native app that utilizes Apple Health-Kit to gather daily step data for users. I've got everything setup and running, but I'm not sure what people are doing to provide fake step data for testing/development purposes. For the other parts of my app, I'm always getting data from HTTP requests, for which I just provide a test api and serve up dummy data from a file in my repo. But does anyone know how to do this for step data (or any other sort of data) in Apple Health-Kit?

Thanks


Solution

  • I figured out a way to handle this. Newer versions of the Xcode iPhone simulator come with Apple Health Kit installed. So, you can just manually go into the app in the simulator and add some step data the old fashioned way. Not a scalable solution if you need loads of data, but good enough for my needs.