Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS-Wearable Index.
This app demonstrates an application that runs with HarmonyOS Next wearable devices. It enables seamless interaction between the wearable and a paired mobile device by combining real-time sensor data with health insights. Users can track their heart rate instantly, share it with their phone, and view calorie data retrieved from Huawei Health.
- The user can measure the heart rate as real time with sensor.
- The user can send the hear rate to the mobile app.
- The user can see the calories that coming from Huawei Health.
- Receive messages on phone from the HMOS Next Wearable.
- Languages: ArkTS
- Frameworks: HarmonyOS SDK 5.1.0(18)
- Tools: DevEco Studio Vers 5.1.0.842
- Libraries:
@kit.ArkUI@kit.AbilityKit@kit.PerformanceAnalysisKit@kit.ArkWeb@kit.NetworkKit@kit.ArkTS@kit.BasicServicesKit@kit.WearEngine@kit.SensorServiceKit
entry/src/main/ets/
|---component
|---|---ButtonComponent
|---hiwearmainability
|---|---HiWearMainAbility
|---model
|---|---CalorieDataResult
|---|---CalorieGroup
|---|---CalorieResponse
|---|---CalorieValue
|---|---PolymerizeWithItem
|---|---SamplePoint
|---|---SampleSet
|---|---TokenResponse
|---pages
|---|---AuthenticationPage
|---|---CaloriesPage
|---|---Index
|---|---SendToPhone
|---utils
|---|---APIConstants
|---|---Constants
|---|---Preferences
|---|---processRespTask
|---viewmodel
|---|---AuthenticationViewModel
|---|---CaloriesViewModel
- Configure signing settings.
- Change module.json with your phone app bundle name.
- Change the values on Constants.ets with your values.
- Change watch app bundle name with your bundle name.
- Huawei Watch 5
- ohos.permission.INTERNET
- ohos.permission.READ_HEALTH_DATA
Heart Bridge is distributed under the terms of the MIT License See the LICENSE for more information.


