Skip to content

CatchChat 推送附加字段

nixzhu edited this page Dec 18, 2014 · 3 revisions

#好友请求

type = "friend_request"

再根据好友请求的状态设置 subtype:

  • subtype = 'pending',刚创建的好友请求,等待处理
  • subtype = 'accepted',请求被接受
  • subtype = 'rejected',请求被拒绝
  • subtype = 'blocked',请求被禁止

#消息

type = "message"

再根据 media_type 分类消息类型:

subtype = "image" # or
subtype = "video" # or
subtype = "text" # 光是文字的话,这个目前也没有,可预留
..... #未来可能的 media_type 类型

截图

被截图者收到,以提醒他所发送的消息被接受者截图了

type = "screenshot"

联系人

用户通讯录的某个联系人新近注册了秒视,通知用户

type = "contact_join"

其它

如果服务器还有其他类型的推送,可补充

此外

  • badge 数字 = “未读消息数”+“好友请求数”
  • content-available 在 type 为 message 时设置为 1,其它情况设置为 0
Clone this wiki locally