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:

  1. sender sends message ejabberd
  2. ejabberd receives message , check if receipant online
  3. if receipant offline ejabberd saves offline message
  4. mod_interact works when offline message received ejabberd , deliver message our webservers
  5. 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.

  1. first config room must member-only room, , add users members right after created it, able total.
  2. add above model ejabberd models.
  3. 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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -