We are implementing a chat infrastructure with using ejabberd-16.08 and we've decided to use mod_interact(https://github.com/adamvduke/mod_interact) for sending request to our webservers while the receipant user is offline (so we can send them push notifications)
However when I integrate mod_interact with ejaberd and send a message to one of my offline friends in my roster, I saw that mod_interact sends mod_unavailable message instead of mod_offline message. (I want mod_interact to send mod_offline message because only mod_offline has the proper information to send push notifications)
So I wonder whats the difference between beeing online and beeing unavailable and how can we set that.
P.S: The user I'm trying to send message(Which seems unavailable) was disconnected from server(not specificaly set his/her presence to unavailable)
Thanks