save your users group detail on server and create a webservice to get grouplist of user. i do same thing for this, from this way you can able to get grouplist from another device.
and if you wants group chat history then this question is helpful for you.