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

iOS TIMUIKitContact无法获取联系人列表 #32

Open
iwpz opened this issue Nov 7, 2023 · 2 comments
Open

iOS TIMUIKitContact无法获取联系人列表 #32

iwpz opened this issue Nov 7, 2023 · 2 comments

Comments

@iwpz
Copy link

iwpz commented Nov 7, 2023

版本:

  tencent_cloud_chat_uikit: ^2.3.3+1

2.3.2就有这个问题

操作流程:

先执行

static final CoreServicesImpl _coreInstance = TIMUIKitCore.getInstance();

然后执行

_coreInstance.init()

然后login,成功后进入app页面。这时展示TIMUIKitConversation是正常的。
自建了联系人列表页面,进入后加载TIMUIKitContact组件,使用默认的FriendListLifeCycle

TIMUIKitContact(
        emptyBuilder: (context) => const Center(
          child: Text("No Contacts"),
        ),
        isShowOnlineStatus: true,
        lifeCycle: FriendListLifeCycle(),
        onTapItem: (selectedConv) {
          // V2TimConversation conv = V2TimConversation(
          //   conversationID: "",
          //   userID: selectedConv.userID,
          // );
          // NavigatorTool.push(context, page: ChatDetailPage(selectedConversation: conv));
          NavigatorTool.push(context, page: ChatProfilePage(userID: selectedConv.userID));
        },
      )

此时组件展示的是提供给emptyBuilderNo Contacts
问题是,当执行一个 Flutter 的hot restart(大R)之后,再次进入这个页面,就可以正常显示联系人列表了。
并且无任何相关log输出。
如果可以,请提供一个官方的email地址,我可以提供一个复现的视频。

@iwpz
Copy link
Author

iwpz commented Nov 8, 2023

补充一下系统环境

[✓] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-x64, locale zh-Hans)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.1)
[✓] VS Code (version 1.83.1)

使用设备:
iPhone 15 Pro Max iOS 17.1 正式版

@hexingcheng
Copy link
Collaborator

https://zhiliao.qq.com/ 可以在这里进行更详细的反馈。

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

2 participants