xmpp (smack and openfire) get registration state of group of users?

一个人想着一个人 提交于 2019-12-12 04:30:05

问题


I use openfire and smack for presence management in my app. I use phone number as username and wanna get list of registered users that exist in user device contacts list. Is there any way to check users registration state?


回答1:


To determine registered users (just like Whatsapp) you can simply post contact's of user on your server and there you can check which contacts exist in your users table (the table where you keep the entry of new user with his phone number). Based on that data you can reply to your application with those phone numbers which are registered on your service and they can be shown to user in mobile app.



来源:https://stackoverflow.com/questions/40956415/xmpp-smack-and-openfire-get-registration-state-of-group-of-users

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!