目录

Getting Started

Development Environment

Supported Devices

Device Type

OS Version

HMS Core (APK) Version

Huawei phone and tablet

HarmonyOS 2.0 or later

5.0.0 or later

Development Process

Follow the steps in the following process when you develop an app.

Step

Description

Setting Up the Development Environment

Before you start developing an app, set up the development environment.

Configuring App Information in AppGallery Connect

Create a HarmonyOS app, enable Push Kit, and set a data processing location in AppGallery Connect.

Signing Your App

Since a HarmonyOS app is managed and controlled using a digital certificate and a profile, generate a digital certificate and a profile, as well as configure an SHA-256 certificate fingerprint of the HarmonyOS app in AppGallery Connect.

Integrating the HMS Core SDK

Add a configuration file in DevEco Studio and integrate the Push SDK.

Configuring Obfuscation Scripts

Configure the obfuscation configuration file to prevent the HMS Core SDK from being obfuscated.

Obtaining a Token

Obtain a push token.

Sending Messages

Call the Push Kit server API to send messages to a HarmonyOS app.