DEV Community

HarmonyOS
HarmonyOS

Posted on

Understanding Huawei Wear Engine Capability Scopes and What Each Permission Does and Why It Matters

Read the original article:Understanding Huawei Wear Engine Capability Scopes and What Each Permission Does and Why It Matters

Understanding Huawei Wear Engine Capability Scopes and What Each Permission Does and Why It Matters

Context

Huawei Wear Engine allows a smartphone app to connect and interact with Huawei wearable devices such as smartwatches. Once integrated, your app can exchange messages with the wearable, send notifications, sync data, and request device information or sensor readings.

Communication works both ways the phone can send data to the watch, and apps running on the watch can send information back to the phone.

To use these features, your app must request permission scopes through Huawei’s developer platform. Each scope unlocks a specific category of functionality, and Huawei only allows access to scopes you’ve been approved for. If your app attempts to use features outside its authorized scopes, those API calls will fail.

Some scopes are available to all developers, while others especially those involving health or biometric data require enterprise approval.

Description

To enable Wear Engine in your project, you must apply for the necessary scopes through AppGallery Connect. Huawei manually reviews these requests.

Individual developers can request only the basic scopes:

  • Device information access
  • Messaging and notification capabilities

Enterprise developers may request all scopes, including advanced health and sensor access.

For sensitive permissions like health data or raw sensor control, Huawei requires additional documentation such as:

  • A data usage explanation
  • A user consent flow description

After your app is approved, you must still obtain permission from the end user at runtime. For example, the first time your app connects to a wearable, the user must authorize the device access request.

If the app attempts to use a scope it wasn't approved for, you’ll see errors like:

Scope unauthorized

Also, ensure that the phone has an active internet connection Wear Engine validates permission scopes through the Huawei Health service.

With setup out of the way, let's look at each capability scope and what it allows.

Solution/ Approach

1. Device Information Access

This scope allows your app to retrieve basic information about paired Huawei wearables. You can get a list of available HarmonyOS-powered devices along with details such as device name and model type.

This scope is essential for identifying which device to connect to or manage.

You can’t interact with a wearable if you don't know it exists. Apps typically use this scope to:

  • Show a list of paired devices

  • Confirm that a required smartwatch is connected

  • Verify compatibility before enabling features

This scope does not expose personal data, so it’s available to all developers including individuals.

2. Wearable Device Status Monitoring

This scope allows your app to check and subscribe to device status updates. With it, your app can:

  • Check whether the watch is connected

  • Monitor battery percentage and charging state

  • Detect whether the user is wearing the device

  • Subscribe to alerts such as low battery warnings

Some devices also expose available storage or companion-app installation state.

Status monitoring helps your app behave intelligently. Examples:

  • Delay large data transfers until the watch is charging

  • Notify the user when battery is critically low

  • Pause activity tracking when the watch is not being worn

  • Display warnings when the connection is lost

Like device information retrieval, this scope is commonly available to all developers.

3. Communication and Notifications

This is one of the most important scopes in Wear Engine. It enables real-time messaging and file transfer between the phone and the wearable.

With this permission, your app can:

  • Send structured messages or commands

  • Transfer files (images, audio, etc.)

  • Receive messages from watch apps

  • Push notifications to the wearable

This is how features like remote controls, app-to-app communication, and custom notification experiences are implemented.

Without this permission, the watch and phone operate independently. With it, the two devices can create a unified experience. Example use cases:

  • Sending turn-by-turn navigation alerts to the watch

  • Syncing workout data in real time

  • Triggering reminders or alarms on the smartwatch

  • Allowing the watch to control media playback on the phone

This capability is available to individual developers, but should be used responsibly to avoid notification spam or excessive background communication.

4. Wearable Sensor Control

This scope gives apps direct access to raw wearable sensor data and the ability to control those sensors remotely. Supported sensors include:

  • Accelerometer and gyroscope

  • PPG

  • ECG

Apps can start and stop measurements and read real-time sensor output.

Developers use this when they need lower-level data or want to implement custom algorithms. Example use cases:

  • Gesture-based controls

  • Fall detection research

  • Custom stress or fatigue prediction models

  • Real-time biometric analytics

Because this scope exposes sensitive biometric signals, Huawei restricts it to enterprise projects and requires explicit user authorization.

Key Tkeaways

Huawei Wear Engine uses capability scopes to control how apps interact with wearable devices. Understanding these scopes helps you plan your app’s features, request only the permissions you need, and build a safe experience that respects user data.

  • Basic Scopes (available to everyone): Device info, status monitoring, messaging and notifications.

  • Advanced Scopes (enterprise-only): Health data access and direct sensor control.

Before using any scope, make sure your app is approved for it, otherwise you’ll run into authorization errors.

Used correctly, Wear Engine enables powerful cross-device interactions, turning your smartwatch and phone into a seamless experience rather than two isolated devices.

References

https://developer.huawei.com/consumer/en/doc/harmonyos-guides/wear-engine-kit-guide

https://developer.huawei.com/consumer/en/doc/harmonyos-guides/we-business_introduction

https://developer.huawei.com/consumer/en/doc/connectivity-guides/applying-wearengine-ios-0000001935664117

https://developer.huawei.com/consumer/en/doc/connectivity-guides/faq-0000001050818031

https://developer.huawei.com/consumer/en/hms/huawei-wearengine/

Written by Sefa Koyuncu

Top comments (0)