我想让converse.js在移动浏览器中正常运行。
converse.initialize({
websocket_url: webSocketUrl, // ConnectionUrl
keepalive: true,
message_carbons: true,
message_archiving: 'roster',
//play_sounds: true,
auto_login: true,
jid: user,
password: password,
show_controlbox_by_default: false,
auto_list_rooms:true,
allow_logout: false,
allow_registration: false,
});
我们可以在config中设置吗?
答案 0 :(得分:0)
我终于得到了答案,我删除了“this.chatboxviews.trimChats();”来自converse.js中的$(window).on(“resize”)函数。主要问题是当我们打开聊天框时它会在焦点上打开android键盘,调整窗口大小并最小化聊天框,就像在IOS中一样并不是因为它没有在焦点上打开键盘。因此,找到问题的主要原因解决了我的问题。