Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Date Added to Health in Healthkit

Tags:

healthkit

I do not know how can i get the "Date Added to Health" ? I can not find some info about the "Date Added to Health" from HKSample.

Anyone can help me ?

HKSample : HKObject 
    open var sampleType: HKSampleType 
    open var startDate: Date 
    open var endDate: Date 

Only has startDate & endDate, no has "Date Added to Health"

like image 880
Chen_ Avatar asked Oct 29 '22 14:10

Chen_


1 Answers

There is no API in HealthKit to get the date a sample was added to Health. You should file a bug with Apple if you'd like this feature to be added.

like image 55
Allan Avatar answered Jan 02 '23 19:01

Allan