jmessage-flutter-plugin如何收到【非客户端修改好友关系收到好友更新事件】?

标签: #<Tag:0x00007f657dbbad70>

jmessage-flutter-plugin如何收到【 | JIGUANG | D - [JMSGReceiver] Action - pp_processReceivedFriendEvent - type:非客户端修改好友关系收到好友更新事件】这个事件?看现在的JMContactNotifyType只有invite_received, invite_accepted, invite_declined, contact_deleted,是否可以添加这个事件?

服务端修改好友关系也会下发相应事件,就这几个里面可以监听到的。

请问是addContactNotifyListener这个吗?我试了下,IOS,jmessage_flutter: 0.6.0,接口没收到。

void initState() {
super.initState();
_jmessage.addContactNotifyListener(contactNotifyListener);
}

void contactNotifyListener(JMContactNotifyEvent event) {
print(“好友事件: ${event.toJson()}”);
}

| JIGUANG | D - [JMSGIMDispatchController] jcore dispatch -> version:1,uid:33212663001,rid:10636,cmd:13
| JIGUANG | D - [JMSGIMDispatchController] receive event notification
| JIGUANG | D - [JIGUANGIMEventNotification] Action - handleReceipt head_uid:388999003,eventID: 568797580
| JIGUANG | D - [JMSGReceiver] Action - receiveImMessageOrEvent:
| JIGUANG | D - [JMSGReceiver] Action - receiveMessageOrEventInJMSGThread:
| JIGUANG | D - [JMSGReceiver] Action - jmsg_isRepeatEventWithEvent:
| JIGUANG | D - [JMSGReceiver] Action - p_processReceivedEvent - type:非客户端修改好友关系收到好友更新事件, eventId:568797580
| JIGUANG | D - [JMSGReceiver] Action - pp_processReceivedFriendEvent - type:非客户端修改好友关系收到好友更新事件, event:eventID->568797580,fromUid->0,type->7,eventDescription->(null),gid->10,fromGid->0,extra:0,returnCode:0,custom->(null),ctimeMs->1574839734357,rid->10636,headUid->388999003
| JIGUANG | D - [JMSGFriendManager+JMSGInner] Action - p_getgetFriendListCompletionHandler
| JIGUANG | D - [JMSGUserHttp] Actioin - getFriendListWithParameter: