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
答案 0 :(得分:1)
ejabberd示例配置文件中的默认设置是将脱机消息数限制为100.
max_user_offline_messages:
admin: 5000
all: 100
新邮件将被拒绝,发件人将收到错误通知。
如果您的用户是管理员,但您希望从Android以管理员身份进行连接,则还可以配置ejabberd以将管理员的离线消息数量限制为100条消息。