HUAWEI Push Kit 致力于提供安全可靠的消息发送通道,保障消息成功送达。此外,以下非通道因素也直接影响消息的送达情况,主要影响因素有:
● 终端设备是否在线
如果设备离线,Push平台会缓存消息,待用户上线后,再次将消息投递给用户。Push平台只缓存一次用户的消息,如果用户在线后还发不通,Push平台不再缓存。
● 用户手机上集成Push SDK的应用是否被卸载
● 网络状况是否稳定
● 终端手机的安全控制策略
● 不同厂商终端设备对HMS Core(APK)的支持度
● 透传消息送达依赖应用进程是否存在
● 华为Android终端设备(设备出厂自带HMS Core(APK))
天然支持华为推送能力。
● 非华为Android终端设备(设备出厂非自带HMSCore(APK))
要使用华为推送能力依赖HMSCore(APK),需要用户到华为应用市场下载安装该APK,如果不安装则不支持华为推送能力。即使安装了HMSCore(APK),推送能力也会受到系统限制,可能会影响消息推送的到达率。
● iOS终端设备
支持通过APNs(Apple Push Notification service)向iOS设备发送消息的能力。
HUAWEI Push Kit尽可能保障消息及时送达,设备网络条件良好且不拥堵情况下时延在1s内,该时延时间仅指Push通道推送消息的时延。开发者您在AppGallery Connect网站的控制台创建基于token、主题等的推送任务和通过API创建的基于主题的推送任务,Push系统将先进行推送任务的调度,再通过Push通道推送消息。
Push消息支持的Android App包名称最大为128个字节,消息内容最大支持为4K字节(不包括token)。
功能点 | EMUI 版本(及以上) | 推送服务App版本 | 地域要求 | 其它要求 |
主题订阅/退订 | 不涉及 | 不涉及 | 不涉及 | 需要选择数据存储地 |
| 基于主题消息推送 | 不涉及 | 不涉及 | 不涉及 | 需要选择数据存储地 |
WebPush消息推送 | 不涉及 | 不涉及 | 不涉及 | 需要选择数据存储地 |
iOS发送消息推送 | 不涉及 | 不涉及 | 不涉及 | 需要选择数据存储地 |
| 基于受众群组的消息推送 | 9.1.0 | 不涉及 | 不涉及 | 需要开启华为分析功能 |
通知消息智能分类 | 10.0.0 | 10.0.0 | 仅支持中国大陆设备并且是中文消息 | 不涉及 |
| 应用指定通知消息为非常重要(HIGH)级别 | 10.0.0 | 10.0.0 | 不涉及 | 需要申请权限 |
自定义铃声、震动模式、颜色 | 10.0.0 | 10.0.0 | 不涉及 | 不涉及 |
呼吸灯 | 10.0.0 | 10.1.0 | 不涉及 | 不涉及 |
通知消息前台展示 | 9.1.0 | 不涉及 | 不涉及 | 不涉及 |
SDK自动初始化 | 3.0.0 | 不涉及 | 不涉及 | 不涉及 |
指定action打开自定义页面 | 10.0.0 | 10.1.0 | 不涉及 | 不涉及 |
通知消息本地化 | 10.0.0 | 10.0.0 | 不涉及 | 不涉及 |
桌面角标支持set_num | 10.0.0 | 10.1.0 | 不涉及 | 不涉及 |
| 通知消息点击事件上报 | 4.0.0 | 不涉及 | 不涉及 | 不涉及 |
| NC | 4.0.0 | 不涉及 | 不涉及 | 不涉及 |
设置是否显示通知栏消息 | 5.1.0 | 不涉及 | 不涉及 | 不涉及 |
| 自定义通知渠道 | 10.0.0 | 10.0.0 | 不涉及 | 不涉及 |
auto_cancel功能(通知消息常驻) | 10.0.0 | 10.1.0 | 不涉及 | 需要申请权限 |
通知消息大文本样式 | 10.0.0 | 10.0.0 | 不涉及 | 不涉及 |
| 语音播报 | 10.0.0 | 不涉及 | 不涉及 | 需要申请权限 |
高优先级透传消息 | 10.0.0 | 不涉及 | 不涉及 | 需要申请权限 |
| 通知消息Inbox样式 | 10.0.0 | 10.1.0 | 不涉及 | 不涉及 |
通知消息动作按钮 | 10.0.0 | 10.1.0 | 不涉及 | 不涉及 |
如下从服务端发送消息API中字段来看,如果NC要支持通知消息复杂样式的展示,需要满足的版本。即在匹配的EMUI版本上,通过应用市场下载最新的推送服务版本即可。
字段 | EMUI 版本(及以上) | 推送服务App版本(及以上) | 地域要求 | 其他要求 |
message.data | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.data | 10.0.0 | 10.1.0 | N/A | N/A |
message.notification.image | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.click_action.action | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.image | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.icon | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.color | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.default_sound | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.sound | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.tag | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.body_loc_key | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.title_loc_key | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.multi_lang_key | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.channel_id | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.notify_summary | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.big_title | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.big_body | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.auto_cancel | 10.0.0 | 10.1.0 | N/A | 需要选择数据存储地 |
message.android.notification.badge.add_num | 8.0.0 | 8.0.0 | N/A | N/A |
message.android.notification.badge.set_num | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.ticker | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.when | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.importance | 10.0.0 | 10.0.0 | N/A | N/A |
message.android.notification.use_default_vibrate | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.use_default_light | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.vibrate_config | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.visibility | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.light_settings | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.inbox_content | 10.0.0 | 10.1.0 | N/A | N/A |
message.android.notification.buttons | 10.0.0 | 10.1.0 | N/A | N/A |
在EMUI 9.1.x系统版本和指定的推送服务App版本(9.1.1)上NC支持部分通知消息复杂样式的展示,具体涉及如下能力:
自定义铃声
自定义呼吸灯
自定义大文本样式
自定义小图标
自定义右侧图标
自定义角标
通知消息展示覆盖
通知消息本地化
通知消息Inbox样式