...
iOS Native SDK 1.16.3 improves upon our handling to also cover manually entered sleep records.
iOS Native SDK 1.17.3 adjusts our handling of sleep records generated by WatchOS.
Our Apple Health integration is available to sync the following sleep stage details to Validic:
...
Please note that Apple allows for a variety of 3rd party sources to report sleep data into the Health app and some sources may not follow Apple’s guidance on sleep reporting. In fact, the Apple Watch WatchOS 11 update from Apple does not follow their own guidance. Apple’s brief explanation of this situation can be found here. Apple may adjust their processing in a future WatchOS version, however, for now WatchOS 11 does not properly report sleep in-bed or sleep samples in Inform.
...
So, we have decided to adjust our mobile SDK to handle sleep from WatchOS 11 Apple Watches.
...
The Native iOS SDK now determines the sleep duration for WatchOS samples by looking for contiguous sleep samples. If there is more than a 10 minute gap after sleep samples have been received, we assume the user is no longer asleep and all contiguous sleep samples will be summarized in a single Inform sleep
record. Therefore, you may receive more than one sleep
record per night depending on how active the user is in between sleep samples.
While not perfect, this will allow us to process WatchOS 11 sleep even though the Apple Watch does not report in-bed times.
Please stay tuned to our release notes for details when that release drops.
Also, if a 3rd party source does not report sleep with in-bed ranges then you will not receive the sleep records from that source. So keep in mind that you may receive sleep records from some 3rd party sources but not others.
...
In Apple Health, Sleep samples cannot be edited; they can only be deleted and re-created with different information.
Validic does not currently report any deletion events. Sleep samples that have already been processed will not be deleted from Validic if they are deleted from Apple Health.
When In-Bed samples are reported by a source, the In-Bed samples will generate new sleep records in Validic. The In-Bed start and end time will correspond to the start and end time on the Validic sleep record.
When In-Bed samples are not reported by a source, and the source is Apple Watch, then contiguous sleep samples will generate new sleep records in Validic. The start and end times of the contiguous group of samples will correspond to the start and end time times on the Validic sleep record.
Total awake duration (awake_duration) does not contribute to time in bed (in_bed_duration) as this is treated as a period of time when the user got out of bed.
When In-Bed samples are not reported by a source, and the source is 3rd-party (i.e., not Apple Watch), then the sleep stages will not be reported in Validic.
With the exception of Apple Watch, only sleep stages that correspond with an in-bed time will be processed in Validic. If a user manually adds a sleep stage (e.g., Asleep time or Awake time) without an in-bed sample, the sleep stages will not be reported in Validic.
This is inline with Apple’s guidelines for how sleep should be reported in Apple Health, but all sources may not comply with their guidelines.