Hi,
I'm developing Alexa into my Android deivces(login, speak, play music ,and so on), and it works well on Android 5.0 and Android 6.0. But when I run it on Android 4.4.4 or Android 4.4.2, it always request failed. The log is "javax.net.ssl.SSLException: Connection closed by peer"(handshake failed). I use okhttp2.5.0 to do requests.
I used the address https://www.ssllabs.com/ssltest/ to check server's supported protocols.I found
the host "api.amazon.com" supports tls1, tls1.1, tls1.2, but the host "avs-alexa-na.amazon.com" just supports tls1.2. On the other hand, tls1.2 in Android API 19(and below) is disabled by default, but it's enabled by default in Android API 20+.
Is it the reason that cause the problem?
Does anyone have a solution?
Thank you.