如何监听我的任何名册条目的 vcard 更改

发布于 2024-12-18 13:09:27 字数 91 浏览 3 评论 0原文

smack 库中是否有任何方法可以使我能够根据我的任何联系人的 vcard 中的更改进行更新 我尝试了名册侦听器和数据包侦听器来侦听 Iq 数据包,但我无法得到任何东西

is there is any way in smack library that make me able to be updated with changes in vcard of any of my contacts
I tried roster listener and packets listeners which listen for Iq packets but I couldn't get any thing

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

硬不硬你别怂 2024-12-25 13:09:27

简短回答:否。

详细回答:使用当前部署的 vCard 规范,您无法收到更改通知。不过,您可以检测嵌入的头像何时发生变化

基于 vCard4 的新规范中,通过重新使用 PEP 用于通知。不幸的是,它尚未广泛部署。

Short answer: No.

Long answer: With the currently deployed vCard spec, you can't get notifications of changes. You can however, detect when the embedded avatar changes.

In the new, vCard4-based spec, this is solved by re-using PEP for notifications. Unfortunately, it isn't widely deployed yet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文