Openfire online issue

I am using openfire server in my iOS App . some time my user does not goes online even i connect from my iPhone App.

some time when one user goes online the other went offline from the panel.