Getting Started

Quick Tutorial

Before developing an app, refer to the sample code to view the effects after integrating Wear Engine to the app.

Development Environment

Android platform for phones

  • Android Studio 3.3.2 or later

  • Requirements for your app:

    • minSdkVersion 23 or later
    • compileSdkVersion 34
  • Requirements for test devices: Phone runs Android 6.0 or later, with the Huawei Health app installed (For non-Huawei phones, HMS Core (APK) is also required, and the Huawei Health app is allowed to run in the background in the app permission management on the phone's settings screen.)

iOS platform for phones

  • Xcode 12 or later

  • Requirements for your app:

    • Supports iOS 13 and later versions
  • Test device: a mobile phone running iOS 13 or later and has the Huawei Health app installed

HarmonyOS platform for wearable devices

Development Process

You need to follow the process below to develop your app.

  1. Register as a developer and complete identity verification. For details, refer to Registering a HUAWEI ID and Applying for the HUAWEI ID Service.
  2. Apply for the account service and create phone apps, fill in the app information (including the package name and signing certificate fingerprint) to obtain the app ID. For details, refer to Registering a HUAWEI ID and Applying for the HUAWEI ID Service.
  3. Apply for the Wear Engine service to obtain the usage permission of related Huawei wearable APIs. For details, refer to Applying for the Wear Engine Service.

    NOTICE

    You can only proceed to the following debugging process after you have obtained the permission, otherwise some features of Wear Engine cannot run as expected.

  1. Develop your phone app.

    Use Android Studio to develop your phone app and integrate the Wear Engine SDK, so you can develop the Wear Engine capabilities for your phone app. For details, refer to Integrating the Wear Engine SDK.

  2. (Optional) Develop your wearable app.

    NOTE

    To implement message communications between apps (sending messages or files between the phone app and its counterpart on the wearable device), you need to develop the corresponding wearable app.

    1. Obtain a Huawei wearable device that has been integrated with Wear Engine. (For details, refer to Supported Devices.)
    2. Use HUAWEI DevEco Studio, and refer to the lite wearable app development guide or wearable app development guide to develop a wearable app. Note: If template-based notifications on wearable devices of Wear Engine need to be used, ensure that the package name of a wearable app does not exceed 28 characters.
    3. Follow instructions in this guide to integrate the Wear Engine SDK and develop Wear Engine for your wearable app.

  3. Download the Huawei Health app from AppGallery to the phone. Pair the wearable device with the Huawei Health app on the phone.
  4. Install the developed wearable and phone apps and check whether features of Wear Engine can work properly. For details about how to install wearable apps, refer to Running Your App/Service on a Lite Wearable and Running Your App/Service on a Wearable.
  5. Release your app to AppGallery.

    For details about how to release phone apps, refer to Releasing an App (APK). For details about how to release wearable apps, refer to Releasing a HarmonyOS App.

Search
Enter a keyword.