lwc:programming:mobile:android:mqtt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lwc:programming:mobile:android:mqtt [2021/11/13 20:12] – created John Harrisonlwc:programming:mobile:android:mqtt [2021/11/18 15:24] (current) John Harrison
Line 14: Line 14:
 ==== HiveMQ MQTT Client ==== ==== HiveMQ MQTT Client ====
  
 +==== TLSv1.2 and Android 4.4 ====
 +//Android 4.4 has TLSv1.2 disabled. A possible workaround is to create our own socketfactory which supports TLSv1.2//
 +  * [[https://www.hivemq.com/docs/hivemq/4.7/user-guide/howtos.html|Paho SSL with Eclipse]] might have a way for us to use our own socketfactory but not sure if this can be moved to Android
 +    * this method worked when using [[https://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/|this library]]
 +  * [[https://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/|Implementing TLSv1.2 on Android 4.4 by extending socketfactory]]
 +  * [[https://github.com/erickok/transdroid/blob/master/app/src/main/java/org/transdroid/daemon/util/TlsSniSocketFactory.java|Android Java extending socketfactory]]
 +=== More links ===
 +  * [[https://stackoverflow.com/questions/28329652/enabling-specific-ssl-protocols-with-android-webviewclient]]
 +  * [[https://stackoverflow.com/questions/28943660/how-to-enable-tls-1-2-support-in-an-android-application-running-on-android-4-1]]
 +  * [[https://stackoverflow.com/questions/60970805/android-kitkat-does-not-support-tlsv1-2]]
 +  * [[https://stackoverflow.com/questions/45202267/android-4-1-to-4-4-kitkat-enable-tls-1-2-for-api]]
 +  * [[https://github.com/erickok/transdroid/blob/master/app/src/main/java/org/transdroid/daemon/util/TlsSniSocketFactory.java]]
 +  * [[https://github.com/square/okhttp/issues/2372]]
 +  * [[https://gist.github.com/mlc/549409f649251897ebef]]
 ===== Reference ===== ===== Reference =====
   * [[https://medium.com/swlh/android-and-mqtt-a-simple-guide-cb0cbba1931c|Android MQTT Simple Guide]] (from Medium)   * [[https://medium.com/swlh/android-and-mqtt-a-simple-guide-cb0cbba1931c|Android MQTT Simple Guide]] (from Medium)
 +  * [[http://portecle.sourceforge.net/|Portecle: generate bks, jks and friends from certs]] (use this or your life will be hell)
  
  
  • lwc/programming/mobile/android/mqtt.1636855960.txt.gz
  • Last modified: 2021/11/13 20:12
  • by John Harrison