Requirements

To enable push notifications on Huawei Android devices using OneSignal, you’ll need:

Setup

1. Enable PushKit

See Huawei’s docs on Push Kit.

2. Get your Huawei Push credentials

Open AppGallery Connect and select your app/project.

Navigate to your App in AppGallery Connect

Go to In-App Purchases under All services > Earn. Copy the following:
  • Package Name
  • Client ID
  • Client Secret

Copy your Package Name, Client ID, and Client Secret

3. Add credentials to OneSignal

In the OneSignal dashboard, go to your app Settings > Push & In-App > Huawei Android (HMS).

Select Huawei Android in OneSignal

Click Activate and paste your credentials:
  • Package Name
  • Client ID (into App ID field)
  • Client Secret (into App Secret field)
Then click Next.

Enter Huawei Push credentials in OneSignal

4. (Optional) Apply for Huawei’s Self-Classification Rights

Huawei requires AppGallery apps sending notifications to users in China to categorize messages. They offer automatic classification, but self-classification gives more control and higher send limits for critical message types.

How to apply

  1. Follow Huawei’s Self-Classification application guide.
  2. Once approved, use the Huawei_category field in the OneSignal API to classify your messages.

Supported Huawei_category values

CategoryDescription
IMInstant messaging
VOIPVoice-over-IP services
SUBSCRIPTIONSubscribed content notifications
TRAVELTravel info (e.g., ticket updates)
HEALTHHealth and wellness updates
WORKWork-related reminders
ACCOUNTAccount activity alerts
EXPRESSLogistics/delivery updates
FINANCEFinancial/banking alerts
DEVICE_REMINDERDevice-level system reminders
MAILEmail client messages
MARKETINGMarketing or promotional content
Default category is MARKETING, which is limited to 2–5 sends/day depending on third-level classifications.Important: Classification violations may lead to penalties or delivery restrictions.

You’re now authorized to send Huawei push notifications using OneSignal! Next steps: