How to get Date Added to Health in Healthkit

394 Views Asked by At

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"

1

There are 1 best solutions below

1
On

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.