lookup for registered users
I am looking to sync all my phone contacts with my tigase XMPP server. I initially planned to use XEP-0055 but tigase server doesn't support it. The below code throws an "unsupported feature exception"
UserSearchManager search = new UserSearchManager(connection);
Form searchForm = search.getSearchForm( connection.getServiceName());
Form answerForm = searchForm.createAnswerForm();
So what's the best way (or any way!) to check if the contacts of my phone are registered users on my server?
All I need to know is if my contacts exist on the server.
I have been trying to solve this problem for last two weeks.
Added by Artur Hefczyc almost 4 years ago
I partially answered the question in other forums topic: RE: Adding support for XEP-0055.
I think the best way to do it would be to create a custom protocol (XEP) which allows you to upload to the server all your contacts (or just phone numbers) and let the server run the DB search. Once the search is completed, the server would return a list of contacts found in DB. Then there is another question - what to do now? You can add all the contacts to your roster but in order to see their presence you need to request presence subscription for each contact. This is all doable, but requires some work.