I have successfully created a multiuserchat group, but the user goes offline the user is removed from the group, and i want to have the history of messages to save for the user the next time he logs in. I found some approaches from previous and deduced as follows
There are several old answers out there but none of them is based on new SMACK API 4.1.5+
using “Stream Management”, but i have no idea what and how to do it, How it helps to solve my problem.
Using a PUBSUB for getting messages and delivering to user and showing the pseudo-list of users.
I want to know the best and effective approach or any libs which help to achieve my result. I am a newbie to XMPP and have 2+ year experience in java
NOTE: I am looking for a whatsapp group chat implementation to kick/invite/providing_permissions to the user and history of messages for notifications/when he is offline.
I am searching for this from long time , Any Help is really appreciated. Thanks in advance.
The same question is also available at stack overflow, please find at android - How to persist users(MultiUserChat) and chat history in Openfire (Ver 4.0.3) using SMACK API (4.2.0 Beta1) - S…
You can persist users, if you make the chat room members_only and add the users as members.
When joining the room, you simply get the list of all members as your room roster instead of the occupants. Members are also part of the chat room, even if they are offline.
For the room history you only have the default MUC history I guess.
Maybe you could look into Openfire’s Archive plugin + Smack’s MAM (XEP-0313) Support to achieve some history management.
This user calls the rest service and then the service using openfire rest admin api creates the group on server. This makes it dynamic. You can also try a similar approach.
@Sai_Sarath found any solution?
Me also facing same issue. Even though showing room persistence in openfire, It kick the users after sometime and show only one user in that or some time it is empty