Team notifications
Update time: 2024/03/14 18:45:33
Team notifications belongs to notification types. For some team events, all team members will receive a team notification. The notification object has a field attach
that contains additional information. The attach
has a field type
to identify the type of notifications.
Notification events
Type |
Description | Field |
---|---|---|
updateTeam |
team information update. After updating the team information, all team members will receive a team notification of type updateTeam |
|
addTeamMembers |
Invite users to join a team After inviting people into the team, all team members will receive a team notification of type addTeamMembers |
|
removeTeamMembers |
Removing members After removing a member out of the team, all members will receive a notification of type removeTeamMembers |
|
acceptTeamInvite |
If team owners and administrators invite people to join the team, the invited people will receive a system notification of type teamInvite (see [System notifications for team events](#System notifications for team events))**
|
|
passTeamApply |
Users can request to join an advanced team, and the team owner and administrators will receive a system notification of type applyTeam (see [System notifications for team events](#System notifications for team events)). After receiving a request to join the team, the team owner and administrators can choose to approve or reject the request.
|
|
addTeamManagers |
[Add administrators](/docs/TM5MzM5Njk/DI3MjI1Nzc#Add team manager), all team members will receive a team notification of type addTeamManagers |
|
removeTeamManagers |
[Remove administrators](/docs/TM5MzM5Njk/DI3MjI1Nzc#Remove team manager), all team members will receive a team notification of type removeTeamManagers |
|
leaveTeam |
Leave a team. All members in the team receive a team notification of type leaveTeam |
|
dismissTeam |
[Dismiss the team](/docs/TM5MzM5Njk/DI3MjI1Nzc#Dismiss the team), all team member objects will receive a team notification message of type dismissTeam |
|
transferTeam |
Transfer the ownership of a team, all members in the team receive a team notification of type transferTeam . |
from : account transferring the ownership of a team |
updateTeamMute |
[Updating the mute state of a member](/docs/TM5MzM5Njk/DI3MjI1Nzc#Updating the mute state of a member), all team members receive a notification of type updateTeamMute . |
|
- If
attach
has anaccount
oraccounts
field, the fieldusers
ofattach
contains the user profiles for these accounts. - Updating the team nickname will not receive any team notifications, and all other team members will get notified by the
onupdateteammember
callback registered when Initializing the SDK. See Edit team properties and Edit nicknames of other team members.
System notifications for team events
The following types of notifications belongs to system notifications, not notification messages. For the difference between notification messages and system notifications, see [Notification Messages and System Notifications](https://doc.yunxin.163.com/messaging/guide/zg3NzA3NTA?platform=web#Notification Messages and System Notifications).
Type |
Description | Field |
---|---|---|
teamInvite |
Invite a user to a team |
|
rejectTeamInvite |
Reject an invitation |
|
applyTeam |
Request to join the team |
|
rejectTeamApply |
Reject a request to join a team |
|
Was this page helpful?