ruby on rails - Listen to Prosody Offline messages directory -
i have developed chat application using prosody , need send push notification when receives message , isn't online.
this chat application works webapp written in ruby on rails.
i searched lot , didn't found sends push notifications prosody(i found ejabberd had problems ejabberd). decided gem ror monitors directory, can monitor prosody's offline message directory , callback when message couldn't delivered user , send push notification him.
i found gem listen guard(https://github.com/guard/listen) need, don't know should start listener , when should stop since need run aways webapp online.
you trying make over-complicated things, because think prosody "black box". in fact need:
prosody module, "hooks" offline message , send webapp - see example here: https://github.com/jorgenphi/prosodypush
push notification module favorite web framework - think can find tons of ruby gems it.
Comments
Post a Comment