0
votes

I am working on chat app by using smack 4.1 and ejabberd-15.11 my scenario is - if client A,B,C,D send messages to E and E is offline then all messages stores in offline storage but when user E comes online android client becomes unresponsive if number of offline stored messages are in huge amount (3000-5000). Please suggest me some solution

1
in my scenarion offline message are received by FCM but also repeate those all message from ejabbered when client send available status . Any idea ?Vishal Patoliya ツ
how you are receiving messages from client by XEP-0013: Flexible offline messages retrieval or send user presence and server start sending messages ? explain your client flow.Sunil Singh
sending available and unavailable status when need to do online and offlineVishal Patoliya ツ

1 Answers

1
votes

The default setting in ejabberd example config file is to limit the number of offline messages to 100.

  max_user_offline_messages: 
    admin: 5000
    all: 100

New messages will be rejected and sender will be notified with an error.

If you user is an admin but you are expecting to connect as admin from Android, you can also configured ejabberd to limit the number of offline messages for admin to 100 messages.