Step-by-step guide to connect your Huawei app to OneSignal for push notifications, including PushKit setup, API key configuration, and Huawei’s optional message self-classification for apps with users in China.
To enable push notifications on Huawei Android devices using OneSignal, you’ll need:
Huawei_category
API fieldGo to AppGallery Connect > Project Settings > PushKit and enable PushKit.
Open AppGallery Connect and select your app from the My Apps section.
Navigate to your App in AppGallery Connect
Go to In-App Purchases under All services > Earn. Copy the following:
Copy your Package Name, Client ID, and Client Secret
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:
Then click Next.
Enter Huawei Push credentials in OneSignal
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.
Huawei_category
field in the OneSignal API to classify your messages.Huawei_category
valuesCategory | Description |
---|---|
IM | Instant messaging |
VOIP | Voice-over-IP services |
SUBSCRIPTION | Subscribed content notifications |
TRAVEL | Travel info (e.g., ticket updates) |
HEALTH | Health and wellness updates |
WORK | Work-related reminders |
ACCOUNT | Account activity alerts |
EXPRESS | Logistics/delivery updates |
FINANCE | Financial/banking alerts |
DEVICE_REMINDER | Device-level system reminders |
MAIL | Email client messages |
MARKETING | Marketing 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:
Step-by-step guide to connect your Huawei app to OneSignal for push notifications, including PushKit setup, API key configuration, and Huawei’s optional message self-classification for apps with users in China.
To enable push notifications on Huawei Android devices using OneSignal, you’ll need:
Huawei_category
API fieldGo to AppGallery Connect > Project Settings > PushKit and enable PushKit.
Open AppGallery Connect and select your app from the My Apps section.
Navigate to your App in AppGallery Connect
Go to In-App Purchases under All services > Earn. Copy the following:
Copy your Package Name, Client ID, and Client Secret
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:
Then click Next.
Enter Huawei Push credentials in OneSignal
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.
Huawei_category
field in the OneSignal API to classify your messages.Huawei_category
valuesCategory | Description |
---|---|
IM | Instant messaging |
VOIP | Voice-over-IP services |
SUBSCRIPTION | Subscribed content notifications |
TRAVEL | Travel info (e.g., ticket updates) |
HEALTH | Health and wellness updates |
WORK | Work-related reminders |
ACCOUNT | Account activity alerts |
EXPRESS | Logistics/delivery updates |
FINANCE | Financial/banking alerts |
DEVICE_REMINDER | Device-level system reminders |
MAIL | Email client messages |
MARKETING | Marketing 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: