Open AndresTIY opened 4 years ago
Hey @AndresTIY try the new version 0.8v :)
Hey @terrillo ! thanks for the update. after deleting and reinstalling the app, removing node modules & cache clean, updating the package number to 0.8, reinstalling pods, and a good ol' react-native start --reset-cache
, it's still giving me an empty array :(
@AndresTIY - Were you able to solve this problem? It doesn't even work on simulator for me.
Oh, I found what's wrong. I looked into the code. I see there is a option "includeManuallyAdded" and default values is false. I had to add this option with true and it worked for me.
@terrillo - I prefer you to update the guide describing all options.
Hi,
So currently I'm able to get permissions and weight data. I'm having trouble getting steps data. I'm using the
getDailyStepCountSamples
function, but the results is returning an empty array instead.I'm using
react-native: 0.61.2
react: 16.9.0
xcode: 11.2.1
if that helps.Here's the code I'm using as well:
When button is pressed, the console logs look like:
Initialized! 1
steps success []
weight success [{...}]
I also checked to verify steps and weight data exists inside the Apple Healthkit. Also, haven't been able to try this out on a physical device, only on the iOS simulator:
iphone 11 - 13.2.2
Thanks for the help!