ios - GroupChat Push Notification on XMPP -
we developing xmpp application on ios , android. using ejabberd xmpp server , using mod_interact (https://github.com/adamvduke/mod_interact) inform our webservers send push notifications clients offline messages: flow this:
- sender sends message ejabberd
- ejabberd receives message , check if receipant online
- if receipant offline ejabberd saves offline message
- mod_interact works when offline message received ejabberd , deliver message our webservers
- web server finds push notification informations clients , sends push notification
its working on 1 1 chat. in group chat(muc) mod_interact doesnt work , cannot send push notification group receipants. know other solutions fix problem on both 1 1 , group chat.
thanks
look ejabberd_mod_offline_post, supports both one2one , muc.
- first config room must member-only room, , add users members right after created it, able total.
- add above model ejabberd models.
- implement callback service handle callback post.
the idea when user go offline:
- in one-to-one case, offline_message_hook raised
- in muc case, muc_filter_message raised, , 1 not presence-available offline.
Comments
Post a Comment