Open manuelnaturalcycles opened 7 years ago
Looks like the plugin needs to be altered a bit for this type of usage. Apple doc.
I see.
I have an old version of the plugin forked from this one which actually had a saveCategorySample method implemented.
Was this removed for any specific reason?
I will work on this modification to see if i can make it happen.
thanks!
Perhaps it was removed by a PR, not intentionally IIRC.
Oj! That seems unfortunate, it was a cool feature.
Hej @EddyVerbruggen I successfully readded the functionality in this fork https://github.com/manuelnaturalcycles/HealthKit I am a bit lost as to how to structure the code that I added so that you would even consider merging it into real branch, is there any guide i should use?
Hi @manuelnaturalcycles your code looks good. I may need to tweak a little thingy after merging but that's not an issue.
Do you have a JS sample I can test this method with perhaps?
I cant save Sexual Activity because it asks for a unit. How should I handle saving data which is not really a quantity sample but a Category?