Apple Health, Health Connect & Samsung Health
Automatic Background Data Synchronization
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// When Apple's Health app initiates contact, it triggers your application
// via didFinishLaunchingWithOptions. Once activated, HealthKit waits
// briefly to determine if your app wishes to renew its query contracts.
// Calling the relevant method as early as possible renews these contracts,
// enabling the app to fetch new data promptly from Apple Health.
ThryveSDK.get().executeBackgroundSync(
dataSource: .apple,
dataTypes: ThryveAppleHealthDataType.allTypes)
// Override point for customization after application launch.
return true
}val healthConnectConfig = ThryveHealthConnectConfig(
dataTypes = ThryveHealthConnectDataType.entries.toList(),
enableBackgroundSync = true,
enableReadHealthDataHistory = true
) Manual Data Synchronization
Historic data backfill
Parameter
Description
Mandatory
Last updated

