xmpp(smack和openfire)获取用户组的注册状态? [英] xmpp (smack and openfire) get registration state of group of users?

查看:225
本文介绍了xmpp(smack和openfire)获取用户组的注册状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中使用openfire和smack进行状态管理. 我使用电话号码作为用户名,并希望获取用户设备联系人列表中存在的注册用户列表. 有什么方法可以检查用户注册状态?

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?

推荐答案

要确定注册用户(就像Whatsapp一样),您只需在服务器上发布用户的联系人,然后您就可以检查用户表中存在哪些联系人(表格中,您可以在其中保留新用户及其电话号码的条目).根据这些数据,您可以使用服务中注册的电话号码回复您的应用程序,并可以在移动应用程序中将其显示给用户.

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.

这篇关于xmpp(smack和openfire)获取用户组的注册状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆