powered by Jive Software

Retrival Offline Message on Smack 4.2.0

I adding to mod_offline on ejabberd. I cant retriving offline message. In my opinion, When user close connection, smack cannot send unavailable message to ejabberd server. So user is available on ejabberd server. As a result of this, server dont send offline message to client. Is there any solution except offline message manager?