Skip to content

Commit

Permalink
Merge pull request #1014 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Modify IM Docs
  • Loading branch information
haoxiuwen authored Oct 31, 2024
2 parents 9ae734e + 7bfa2d0 commit 50fc290
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/document/ios/user_relationship.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ if (!aError) {
}];
```
当你同意或者拒绝后,对方会通过好友事件回调,收到 `friendRequestDidApprove` 或者 `friendRequestDidDecline`。
当你同意或者拒绝后,对方会通过好友事件回调,收到 `friendRequestDidApproveByUser` 或者 `friendRequestDidDeclineByUser`。
示例代码如下:
Expand Down Expand Up @@ -130,7 +130,7 @@ if (!aError) {
}];
```
调用 `deleteContact` 删除好友后,用户 A,B 都会收到 `onContactDeleted` 回调,示例代码如下:
调用 `deleteContact` 删除好友后,用户 A,B 都会收到 `friendshipDidRemoveByUser` 回调,示例代码如下:
```objectivec
// 好友已被删除。
Expand Down
1 change: 1 addition & 0 deletions docs/document/server-side/account_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ POST https://{host}/{org_name}/{app_name}/users
##### 请求示例

```shell
## 无需传入 token
curl -X POST -i "https://XXXX.com/XXXX-demo/XXXX/users" -d '{"username":"user1","password":"123","nickname":"testuser"}'
```

Expand Down
8 changes: 4 additions & 4 deletions docs/document/server-side/push_extension.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 离线推送的消息扩展说明

环信即时通讯 IM 支持 APNs 推送和 Android 厂商离线推送,包括华为、荣耀、FCM、小米、魅族、OPPO 和 vivo。使用离线推送时,你可以通过消息扩展字段实现推送相应功能,例如设置推送模板中的推送标题和内容、设置仅接受提及`@`)某些用户的推送通知等。
环信即时通讯 IM 支持 APNs 推送和 Android 厂商离线推送,包括华为、荣耀、FCM、小米、魅族、OPPO 和 vivo。使用离线推送时,你可以通过消息扩展字段实现推送相应功能,例如,设置推送模板中的推送标题和内容、设置仅接收提及`@`)某些用户的推送通知等。

## 推送扩展字段

Expand Down Expand Up @@ -143,9 +143,9 @@
},
"fcm_channel_id": "",
"honor_click_action": "",
"honor_importance": ""
"honor_target_user_type": 0
"huawei_target_user_type": 0
"honor_importance": "",
"honor_target_user_type": 0,
"huawei_target_user_type": 0,
"huawei_category": "",
"huawei_receipt_id": "",
"huawei_click_action": "",
Expand Down

0 comments on commit 50fc290

Please sign in to comment.