Openfire user stays online forever

We are using Openfire 4.0.1 and we do have chatting functionality from application ios and android.

Issue is openfire user never gets offline from mobile end when user is in foreground your openfire user will be online once you go in background your user in openfire will get offline.

Now Issue is there are some users which never gets offline i have tried to login using other utilities like spark or spark-web and logout user manually still they appear online only in openfire admin console.

We do have push notifications functionality of offline users but some users who never be offline in that case push notification functionality never works!

Is there any way that this user can be forcefully offline.

Any Help would be appreciated.

Hi,
I am having functionality of group chat in my app.
How did you achieve push notification in openfire for andoid and ios both?