Skip to main content

Mi Fitness (Xiaomi)

By integrating the ROOK SDK, you can access available Mi Fitness (Xiaomi) data through of Apple Health and Health Connect to retrieve body, physical, and sleep information from your linked users. Our SDK collects raw data from Apple Health and Health Connect, transforms it into structured data, and delivers it in JSON format through the ROOK SDK.

Xiaomi.png

Mi Fitness (Xiaomi) Data Available Through Apple Health

iOS users will need to complete a one-time connection between their Xiaomi account and Apple Health on their device.

After this setup is complete, the ROOK SDK will automatically collect the synchronized data from Apple Health without requiring any additional action from the user. This is the data available from Apple Health that ROOK extracts:

{
"body_summary": [
"hr_avg_bpm_int",
"hr_granular_data_array",
"hr_maximum_bpm_int",
"hr_minimum_bpm_int",
"height_cm_float"
]
}

Mi Fitness (Xiaomi) Data Available Through Health Connect

Android users will need to complete a one-time connection between their Xiaomi account and Health Connect on their device.

Once this setup is finished, the ROOK SDK will automatically collect the synchronized data from Health Connect without any further input from the user. This is the data available from Health Connect that ROOK extracts:

```json
{
"body_summary": [
"hr_avg_bpm_int",
"hr_granular_data_array",
"hr_maximum_bpm_int",
"hr_minimum_bpm_int",
"hr_resting_bpm_float",
"saturation_avg_percentage_int",
"saturation_granular_data_array"
],
"body_heart_rate_event": [
"hr_avg_bpm_int",
"hr_granular_data_array",
"hr_maximum_bpm_int",
"hr_minimum_bpm_int"
],
"body_oxygenation_event": [
"saturation_avg_percentage_int",
"saturation_granular_data_array"
]
}
note

The data you receive depends on the permissions granted by the user when linking their data source.

Data Delivery:

Our Mi Fitness (Xiaomi) integration delivers notifications within minutes after a user completes an event and syncs their app. ROOK retrieves, processes, and delivers the data through our SDK, providing you with user insights efficiently.

Start Extracting Mi Fitness (Xiaomi) Data

To begin extracting health data from Mi Fitness (Xiaomi) through the Health Connect and Apple Health SDKs, follow these steps:

Step 1: Integrate Our SDK

ROOK offers SDK compatible with Health Connect and Apple Health SDKs, allowing precise integration into your solution.

iOSAndroidFlutterCapacitorReact Native

Step 2: Set Up Your Connections Page

Enable the Mi Fitness (Xiaomi) data through the Health Connect and Apple Health SDKs source on the connections page to allow your users to connect.

ConnectXiaomi.png

Step 3: Receive Your Users' Data

Once users connect to the data source, you will start receiving their data. Utilize this data to its full potential.

{
"version":[],
"data_structure": "",
"client_uuid": "",
"user_id": "",
"body_health": {},
"physical_health": {},
"Sleep_health": {}
}

Mi Fitness (Xiaomi) Brand Guide

To ensure the correct use of Xiaomi’s brand and assets, follow their official guidelines. You can find more details in their brand guide here: Xiaomi Brand Guide.