Samsung Health

With Thryve you can easily integrate your application with Samsung Health. Thryve enables integration via the new Samsung Health Data for Androidarrow-up-right with SDK 5.2.0 onwards.

circle-info

To access data from Samsung Health using the ThryveSamsungHealth module, register your application with the Samsung Partner App Program. The Thryve SDK includes all necessary Samsung SDKs, eliminating the need for additional logic. Ensure your application ID is approved by Samsung for Samsung Health access. For more details, visit the Samsung developer websitearrow-up-right.

Data availability

Manually entered data

Data manually input by users into Samsung Health, such as Blood Pressure and Exercise, is no longer marked with the "manual_entry" annotation, as Samsung has removed this feature.

Migration Guide

triangle-exclamation

Samsung is deprecating its old implementation of the Samsung Health Module. We strongly advise migrating your user base to the updated module.

Important Considerations:

  • Re-Authentication Required: Existing users must re-authenticate Samsung Health on their devices due to the new API foundation. Thryve SDK accounts for that and isActive for Samsung Health will return false if we have a previous connection stored in backend (e.g. for previous integration) but the user has not authorized any types with the new SDK.

  • No Native Migration Options: Samsung is not offering direct migration paths for current users.

  • Samsung approval required: To use the new Samsung Health module in production, request a partnership migrationarrow-up-right through your existing Samsung Developer account.

triangle-exclamation

Both the legacy (shealth) and the new (samsung_health) Samsung Health modules are available with the same model names but different package names: com.thryve.sdk.samsungHealth and com.thryve.sdk.samsung.health, respectively.

To complete the migration, developers only need to update the imports of ThryveSamsungHealthConfig and ThryveSamsungHealthDataType to the new package, com.thryve.sdk.samsung.health.

circle-exclamation

Follow these instructions to migrate from the deprecated old Thryve Samsung Health module to new Thryve Samsung Health module

Step 1: Add the New Samsung Health Module Dependencies

circle-info

If you are currently using the old Thryve Samsung Health SDK, it is strongly recommended to remove it before integrating the new Samsung Health module to avoid conflicts and ensure a clean migration.

Step 2: Use the New Configuration Model

Replace all deprecated Samsung Health configuration classes. Use the new ThryveSamsungHealthConfig and ThryveSamsungHealthDataType

circle-exclamation

With the new module, Samsung has adapted their data type classification. Please check this table for changes:

shealth (old module) dataTypes
samsung_health (new module) dataTypes
Note

Not available

ACTIVITY_SUMMARY

Daily Data on total active time, ActiveBurnedCalories, BurnedCalories and Distance

BLOOD_GLUCOSE

BLOOD_GLUCOSE

HBA1C

Not available

OXYGEN_SATURATION

BLOOD_OXYGEN

BLOOD_PRESSURE

BLOOD_PRESSURE

WEIGHT

BODY_COMPOSITION

BODY_MUSCLE

Not available

Data available as part of BODY_COMPOSITION

BODY_FAT

Not available

Data available as part of BODY_COMPOSITION

WAIST_CIRCUMFERENCE

Not available

BODY_TEMPERATURE

BODY_TEMPERATURE

EXERCISE

EXERCISE

FLOORS_CLIMBED

FLOORS_CLIMBED

HEART_RATE

HEART_RATE

Not available

SKIN_TEMPERATURE

SLEEP

SLEEP

SLEEP_STAGE

Not available

Sleep stage data is now available as part of SLEEP dataType

STEP_DAILY_TREND

STEPS

Daily-data only

STEP_COUNT

Not available

Intraday step data is not available anymore.

WATER_INTAKE

WATER_INTAKE

HEIGHT

USER_PROFILE

Step 3: Provide Samsung Health Configuration to SDK

Pass the ThryveSamsungHealthConfig instance created in the previous step to all instances where ThryveSDKConfig is initialized or updated.

Step 4: Re-authenticate User

Connect users to the new Samsung Health module by calling thryveSDK.start()

Last updated