如何监听我的任何名册条目的 vcard 更改
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短回答:否。
详细回答:使用当前部署的 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.