[ejabberd] Question about presence hooks

Michael Weibel michael.weibel at gmail.com
Tue Jul 24 10:04:32 MSK 2012


> It's bound to happen on mobile, I'm developing a similar system there's no guarantee that the user will actually quit the application, I think that your best bet is hooking offline_message_hook if you want just offline messages. If you want to know the specific state of the user you have to use presence or session management.

You could also use mod_offline_odbc and install a post-insert trigger to your spool table which sends push notifications to devices.

- Michael

More information about the ejabberd mailing list