Smack version - 4.3.1
I am noob to android and SMACK . Don’t mind the silly doubts.
We are working on a chat app using XMPP and smack as XMPP client. We want the following functionality.
- App should be in keep alive state.
- App should remain connected to the server even if user closes the app in backgroud.
- The only condition when it is disconnected is the user phone internet is not working or the server.
- If the user logged in one time (while installing the app) then what should be the flow and where to place the code so the reconnection process happens at any activity through out the application .