Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成最近联系人 #47

Closed
zzwei114 opened this issue Sep 6, 2019 · 2 comments
Closed

集成最近联系人 #47

zzwei114 opened this issue Sep 6, 2019 · 2 comments

Comments

@zzwei114
Copy link

zzwei114 commented Sep 6, 2019

集成的最近联系人 , 如果app进程被意外杀死 , 自动登录之后离线的消息刷新不出来,手动登录之后离线消息会刷新出来。
NIMClient.getService(MsgService.class).queryRecentContacts().setCallback(new RequestCallbackWrapper<List>() {

                @Override
                public void onResult(int code, List<RecentContact> recents, Throwable exception) {
                    if (code != ResponseCode.RES_SUCCESS || recents == null) {
                        return;
                    }
                    loadedRecents = recents;

recents里边并没有离线的消息,是需要开发者自己手动添加进去吗?

@yanchengdeng
Copy link

华为手机 进程杀掉后 偶先 只能获取到accid 对应的用户名获取不到!

@NicalDai
Copy link

名片要单独查的,这里只有一个accid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants