Latest release: 4.0.4.301
The HUAWEI Push Kit console can push messages to subscribers based on an expression formed by topic lists and a custom expression.
The HUAWEI Push Kit console can push messages to all users (Beta).
HUAWEI Push Kit supports the capability in Uplink Message Sending.
Latest release: 4.0.3.301
Some pages on the HUAWEI Push Kit console are optimized.
The topic subscription function is available in all EMUI versions.
Some capabilities for displaying notification messages in complex styles are incorporated into EMUI 9.1.x.
Latest release: 4.0.2.300
Added parameters for the API used to send messages from the app server.
| Parameter | Chang | Description |
| message.android.notification.inbox_content | New | Inbox-style notification messages. |
message.android.notification.buttons | New | Notification message with action buttons. |
Supported inbox-style notification messages.
Supported notification messages with action buttons.
Added the onTokenError method, which is the callback method for a token application failure.
Optimized the style of messages sent from the HUAWEI Push Kit console.
Latest release: 4.0.1.300
Supported integrating the Push SDK into an app project in the Eclipse IDE.
Latest release: 4.0.0.300
Added the function of displaying notification messages on the UI.
Added the automatic initialization capability.
When an app is started, HUAWEI Push Kit is automatically initialized and tokens are automatically applied for. This function is disabled by default and needs to be enabled for an app if necessary.
Expanded the application scope of the following functions:
Functions including topic subscription and unsubscription are available on devices running EMUI 8.1 (excluding a few early EMUI 8.1.N versions) or later versions.
Added the function of sending messages to web apps through the WebPush agent.
Added the function of sending messages to iOS apps through the APNs agent.
Changed conditions for categorizing notification messages and data messages on the HUAWEI Push Kit server.
Any messages that contain message.android.notification are notification messages.
Modified methods of the RemoteMessage class.
Method in SDK 4.0 | Method in SDK 3.0 | Field in Server RESTful API |
getOriginalUrgency() | getOriginalPriority() | message.android.urgency |
getUrgency() | getPriority() | N/A |
getDataOfMap() | N/A | message.data/message.android.data |
getToken() | N/A | N/A |
Added or modified methods of the RemoteMessage.Notification class.
Method in SDK 4.0 | Method in SDK 3.0 | Field in Server RESTful API |
getClickAction() | N/A | message.android.notification.click_action.action |
getIntentUri() | getClickAction() | message.android.notification.click_action.intent |
getBadgeNumber() | N/A | message.android.notification.badge.set_num |
getTicker() | N/A | message.android.notification.ticker |
isAutoCancel() | N/A | message.android.notification.auto_cancel |
getWhen() | N/A | message.android.notification.when |
getImportance() | N/A | message.android.notification.importance |
isDefaultVibrate() | N/A | message.android.notification.use_default_vibrate |
isDefaultLight() | N/A | message.android.notification.use_default_light |
isDefaultSound() | N/A | message.android.notification.default_sound |
getVibrateConfig() | N/A | message.android.notification.vibrate_config |
getVisibility() | N/A | message.android.notification.visibility |
getLightSettings() | N/A | message.android.notification.light_settings |
Added and modified parameters for the API used to send messages from the app server.
Parameters | Change | Description |
message.notification.image | New | Large icon on the right of a notification message. |
message.notification.urgency | Modified | This field is changed from priority. |
message.android.notification.click_action.action | New | This field is available when type is set to 1. |
message.android.notification.image | Modified | This field is changed from notify_icon. |
message.android.notification.badge.add_num | Modified | This field is changed from num. |
message.android.notification.badge.set_num | New | Badge number. |
message.android.notification.ticker | New | Content displayed on the status bar. |
message.android.notification.auto_cancel | New | Indicates whether an Android notification message is still displayed in the notification bar after a user taps the message. |
message.android.notification.when | New | Message sorting event. |
message.android.notification.importance | New | Android notification message priority. |
message.android.notification.use_default_vibrate | New | Indicates whether to use the default vibration mode. |
message.android.notification.use_default_light | New | Indicates whether to use the default breathing light mode. |
message.android.notification.vibrate_config | New | Customized vibration mode for an Android notification message. |
message.android.notification.visibility | New | Android notification message visibility. |
message.android.notification.light_settings | New | Customized breathing light mode. |
message.android.notification.foreground_show | New | Indicates whether to display notification messages in the foreground when an app is running in the foreground. |
message.apns | New | Information about the message to be sent to an iOS app. |
message.webpush | New | New Information about the message to be sent to a web app. |
Push Kit SDK 3.0 developer documentation entry: https://developer.huawei.com/consumer/en/doc/development/HMS-3-Guides/push-introduction-v3
Push Kit SDK 2.0 developer documentation entry: https://developer.huawei.com/consumer/en/doc/development/HMS-2-Guides/hmssdk_huaweipush_introduction_agent
The SDK of the latest version runs on a mobile phone with HUAWEI HMS Core (APK) 4.0.0.300 or later installed. On a mobile phone that does not have HUAWEI HMS Core (APK) of 4.0.0.300 or later installed, the user will be prompted to install it when your app calls HUAWEI HMS Core.
Basic features of HUAWEI Push Kit are available on most Huawei devices, whereas some advanced features are available only on Huawei devices running EMUI of the required versions. For details, see the EMUI Version-Dependent Features.
Tips:
If you have any questions on releasing your app in HUAWEI AppGallery, contact us via HMSCore@huawei.com.