===== MQTT client libraries ===== * [[https://github.com/eclipse/paho.mqtt.android|paho.mqtt.android]] * [[https://techgaun.github.io/active-forks/index.html#https://github.com/eclipse/paho.mqtt.android|active forks]] * [[https://github.com/hivemq/hivemq-mqtt-client|Hive MQTT Client]] * [[https://hivemq.github.io/hivemq-mqtt-client/docs/installation/android/|Android Installation]] * [[https://hivemq.github.io/hivemq-mqtt-client/docs/quick-start/|Quick start and General Documentation]] * [[https://javadoc.io/static/com.hivemq/hivemq-mqtt-client/1.2.2/overview-summary.html|Java Docs]] * [[https://www.hivemq.com/blog/mqtt-client-library-enyclopedia-hivemq-mqtt-client/|Client Library Encyclopedia]] ==== paho.mqtt.android ==== * Current version supports API 24 and above * Checked out ==== 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 ===== * [[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)