File tree Expand file tree Collapse file tree 10 files changed +11
-11
lines changed Expand file tree Collapse file tree 10 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ EMPushManager.DisplayStyle style = pushConfigs.getDisplayStyle();
8181::: tip
82821 . 设置推送模板为推送的高级功能,使用前需要在[ 环信即时通讯控制台] ( https://console.easemob.com/user/login ) 的** 即时通讯 > 功能配置 > 功能配置总览** 页面激活推送高级功能。如需关闭推送高级功能必须联系商务,因为该操作会删除所有相关配置。
8383
84- 2 . 推送模板相关的数据结构,详见[ 推送扩展字段] ( https://doc.easemob.com /document/server-side/push_extension.html) 。
84+ 2 . 推送模板相关的数据结构,详见[ 推送扩展字段] ( /document/server-side/push_extension.html ) 。
8585:::
8686
8787### 发消息时使用推送模板
Original file line number Diff line number Diff line change 22
33你可以利用扩展字段实现自定义推送设置,本文以强制推送和发送静默消息为例介绍如何实现推送扩展功能。
44
5- 对于推送扩展字段,详见[ 离线推送扩展字段文档] ( https://doc.easemob.com /document/server-side/push_extension.html) 。
5+ 对于推送扩展字段,详见[ 离线推送扩展字段文档] ( /document/server-side/push_extension.html ) 。
66
77## 设置自定义推送字段
88
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ ChatClient.getInstance().pushManager()?.updatePushDisplayStyle(displayStyle).the
6565::: tip
66661 . 设置推送模板为推送的高级功能,使用前需要在[ 环信即时通讯控制台] ( https://console.easemob.com/user/login ) 的** 即时通讯 > 功能配置 > 功能配置总览** 页面激活推送高级功能。如需关闭推送高级功能必须联系商务,因为该操作会删除所有相关配置。
6767
68- 2 . 推送模板相关的数据结构,详见[ 推送扩展字段] ( https://doc.easemob.com /document/server-side/push_extension.html) 。
68+ 2 . 推送模板相关的数据结构,详见[ 推送扩展字段] ( /document/server-side/push_extension.html ) 。
6969:::
7070
7171#### ** 发送消息时使用推送模板**
Original file line number Diff line number Diff line change 9797:::tip
98981. 设置推送模板为推送的高级功能,使用前需要在[环信即时通讯控制台](https://console.easemob.com/user/login)的**即时通讯 > 功能配置 > 功能配置总览**页面激活推送高级功能。如需关闭推送高级功能必须联系商务,因为该操作会删除所有相关配置。
9999
100- 2. 推送模板相关的数据结构,详见[推送扩展字段](https://doc.easemob.com /document/server-side/push_extension.html)。
100+ 2. 推送模板相关的数据结构,详见[推送扩展字段](/document/server-side/push_extension.html)。
101101:::
102102
103103### 发送消息时使用推送模板
Original file line number Diff line number Diff line change 22
33你可以利用扩展字段实现自定义推送设置,本文以强制推送、发送静默消息和富文本推送为例介绍如何实现推送扩展功能。
44
5- 对于推送扩展字段,详见[ 离线推送扩展字段文档] ( https://doc.easemob.com /document/server-side/push_extension.html) 。
5+ 对于推送扩展字段,详见[ 离线推送扩展字段文档] ( /document/server-side/push_extension.html ) 。
66
77## 自定义推送字段
88
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ ChatClient.getInstance()
8989::: tip
90901 . 设置推送模板为推送的高级功能,使用前需要在[ 环信即时通讯控制台] ( https://console.easemob.com/user/login ) 的** 即时通讯 > 功能配置 > 功能配置总览** 页面激活推送高级功能。如需关闭推送高级功能必须联系商务,因为该操作会删除所有相关配置。
9191
92- 2 . 推送模板相关的数据结构,详见[ 推送扩展字段] ( https://doc.easemob.com /document/server-side/push_extension.html) 。
92+ 2 . 推送模板相关的数据结构,详见[ 推送扩展字段] ( /document/server-side/push_extension.html ) 。
9393:::
9494
9595### 发消息时使用推送模板
Original file line number Diff line number Diff line change 22
33你可以利用扩展字段实现自定义推送设置,本文以强制推送和发送静默消息为例介绍如何实现推送扩展功能。
44
5- 对于推送扩展字段,详见[ 离线推送扩展字段文档] ( https://doc.easemob.com /document/server-side/push_extension.html) 。
5+ 对于推送扩展字段,详见[ 离线推送扩展字段文档] ( /document/server-side/push_extension.html ) 。
66
77## 设置自定义推送字段
88
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -
202202| HTTP 状态码 | 错误类型 | 错误提示 | 可能原因 | 处理建议 |
203203| :----------- | :--- | :------------- | :----------- | :----------- |
204204| 400 | illegal_argument | announcement is null | 没有传递公告内容。 | 需传递公告内容。 |
205+ | 403 | group_announce_violation | group announcement is violation, please change it. | 群公告不合法。 | 使用合法的群公告。 |
205206| 401 | unauthorized | Unable to authenticate (OAuth) | token 不合法,可能过期或 token 错误。 | 使用新的 token 访问。 |
206207| 404 | resource_not_found | grpID XX does not exist! | 群组不存在。 | 使用合法的群 ID。 |
207208| 403 | FORBIDDEN | announce info length exceeds limit! | 设置公告长度超限制。 | 设置较短的公告 |
Original file line number Diff line number Diff line change @@ -424,7 +424,6 @@ curl -X PUT -H 'Accept: application/json' -H 'Authorization: Bearer <YourAppToke
424424| :----------- | :--- | :------------- | :----------- | :----------- |
425425| 401 | unauthorized | Unable to authenticate (OAuth) | token 不合法,可能过期或 token 错误。 | 使用新的 token 访问。 |
426426| 403 | group_name_violation | XX is violation, please change it. | 群组名称不合法。 | 使用合法的群组名称。 |
427- | 403 | group_announce_violation | group announcement is violation, please change it. | 群公告不合法。 | 使用合法的群公告。 |
428427| 404 | resource_not_found | grpID XX does not exist! | 群组不存在。 | 使用合法的群 ID。 |
429428| 400 | invalid_parameter | "some of [ groupid] are not valid fields" | 修改的群组信息时,传入的参数不支持,例如修改 ` groupid ` 。|
430429
Original file line number Diff line number Diff line change 4040
4141| 字段 | 类型 | 作用 |
4242| -------------- | ------------- | ---------------- |
43- | ` target ` | Array<String > | 用户 ID 列表,传入的用户 ID 必须为全部小写,否则不生效。 |
43+ | ` target ` | ` Array<String> ` | 用户 ID 列表,传入的用户 ID 必须为全部小写,否则不生效。 |
4444| ` name ` | String | 推送模板名称。 |
45- | ` title_args ` | Array<String > | 推送模板标题。 |
46- | ` content_args ` | Array<String > | 推送模板内容。 |
45+ | ` title_args ` | ` Array<String> ` | 推送模板标题。 |
46+ | ` content_args ` | ` Array<String> ` | 推送模板内容。 |
4747
4848关于如何使用定向模板,详见[ 使用示例] ( #使用定向模板 ) 。
4949
You can’t perform that action at this time.
0 commit comments