powered by Jive Software

BOSH Connection error in smack 4.4.beta01 in android

I am using the latest Gradle dependency 4.4.0-beta1. Before that, I was using 4.3.4. In which, BOSH connection was working fine. But now, Its not working in latest version. Below is the code for BOSH connection configuration:

@Throws(XmppStringprepException::class)
    private fun buildConfiguration(): BOSHConfiguration {
        var sslContext = SSLContext.getInstance("TLS")
        var mtm = MemorizingTrustManager(mContext)
        sslContext.init(
            null,
            arrayOf<X509TrustManager>(mtm),
            SecureRandom()
        )

        val builder =
            BOSHConfiguration.builder()
                .setHost("dev-xmpp.thetest.io")
                .setXmppDomain("dev-xmpp.thetest.io")
                .setPort(5443)
                .setUseHttps(true)
                .setSendPresence(true)
                .setFile("/bosh")
                .setSslContextFactory {
                    sslContext
                }
                .setSocketFactory(sslContext.socketFactory)
                .build()
        return builder
    }

While using the above configuration, I am getting below error:

SSL/TLS required by client but not supported by server

I even contact to server handler for that and he said that they are already providing SSL/TLS support.

Kindly help me with that what exactly I miss here.