DEV Community

HarmonyOS
HarmonyOS

Posted on

How to test the App on Lite Wearable Watches?

Read the original article:How to test the App on Lite Wearable Watches?

Question

How to test the App on Lite Wearable Watches?

Answer

Installing a HarmonyOS app on a Lite Wearable relies on the Huawei Health and DevEco Assistant apps on Huawei phones.

Prerequisites:

  • The Huawei Health is running the latest version.
  • The HUAWEI DevEco Assistant app is installed on the phone. You can download this app from HUAWEI AppGallery.
  • You need to create a HAP that contains the signature information for your app. For details, see Building an HAP Package with Signature Information.

Procedure

  • Use a USB cable to connect the phone to the PC.
  • When prompted, select Transfer files on the phone.
  • Open the project folder on the PC, then go to Build > outputs > hap to locate the HAP. Copy the HAP to the /sdcard/haps/ directory on the phone.

NOTE: If the haps folder is not found under /sdcard/, create one before copying the HAP.

  • Connect the Lite Wearable to the phone through Bluetooth.
  • Open the Huawei Health app on the phone. Touch the Devices tab, then touch Add.
  • Click to enlarge.
  • Touch Smart Watch and select the desired Lite Wearable model.
  • Touch PAIR and follow the onscreen instructions to connect the wearable to your phone.
  • Open DevEco Assistant. The home screen will display the wearable that is connected to the phone.
  • If the wearable is not connected to your Huawei phone, touch Connect on the DevEco Assistant home screen.
  • In DevEco Assistant, touch Install watch app and follow the onscreen instructions to install your app.
  • After the installation is successful, touch your app icon on the wearable home screen to run the app.

Written by Emine Inan

Top comments (0)