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

Popular posts from this blog

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

C# random value from dictionary and tuple -

algorithm - Testing tetrahedron-triangle intersection -