Background delivery ensures that data updates are sent to your backend via webhooks, even when the application is in the background or closed.
AppDelegate.swift
:
AndroidManifest.xml
(for Android Health Connect):
includeBackgroundDelivery: true
when asking for Health Connect permissions:
enableBackgroundDelivery()
will overwrite previous configuration. So you have to call it with all the data types you want in one call.
To check current configuration call getBackgroundDeliveryConfig()
method.
To stop background delivery call disableBackgroundDelivery()
method.
enableBackgroundDelivery
will automatically enable Samsung Health Data background delivery.