Overview HUAWEI Push Kit is a messaging service provided for you. It establishes a messaging channel from the cloud to devices. By integrating Push Kit, you can send messages to your apps on users' devices in real time. This helps you maintain closer ties with users and increases user awareness of and engagement with your apps. The following figure shows the process of sending messages from the cloud to devices.
To use Push Kit, you need to perform the following operations:
Register a developer account on HUAWEI Developers. Create and configure an app and enable Push Kit in AppGallery Connect. Create a project in Android Studio IDE and integrate the HMS Core SDK. Obtain a token of Push Kit, and call and debug Push Kit APIs. What You Will Create In this codelab, you will use the created demo project to call open APIs of Push Kit. Through the demo project, you will:
Apply for a token of Push Kit. Use the token to send messages and receive messages from the HUAWEI Push server. What You Will Learn In this codelab, you will learn how to:
Create a project and an app in AppGallery Connect. Enable Push Kit. Integrate the HMS Core SDK. Send test messages from AppGallery Connect to your app.