Hello all, it is taking long time nearly about 15 seconds and more while logging to ejabberd server from android app, using smack v 4.3.1. Can anyone guide me how to reduce the time during authentication process? Also, I found that during login smack library is requesting server to send entity caps and only after it is sent by the server it is trigerring “authenticated” callback of connnection listner.
` SmackConfiguration.DEBUG = true
XMPPTCPConnection.setUseStreamManagementResumptionDefault(false)
XMPPTCPConnection.setUseStreamManagementDefault(true)
AndroidUsingLinkProperties.setup(context)
val builder = XMPPTCPConnectionConfiguration.builder().apply {
//setCompressionEnabled(true)
setXmppDomain(JidCreate.domainBareFrom("HOST_NAME"))
setPort(5222)
setSecurityMode(ConnectionConfiguration.SecurityMode.required)
//configSSL()
}`