Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Consuming https services problem in Anroid 6 (Marshmallow) in QT/QML?



  • Hi,

    We are using Arcgis Runtime SDK for Qt 10.2.6 and Qt 5.4.2 (MSVC 2013, 32 bit) Qt Creator QT\QML side. And we are develop and deploy Adroid app with Android Armeobi-v7a (GCC4.9 , QT 5.4.2) kid.

    We can consuming http services in Anroid 6 (Marshmallow) verison but in https we can not consuming . Does Anroid 6 (Marshmallow) verison support SSL ? Can we consume https services using with XMLHttpRequest object in Anroid 6 ?

    Best Regards


  • Lifetime Qt Champion

    Hi,

    Following the Android 6.0 changes page. They are moving away from OpenSSL. So for your application to continue working you should compile OpenSSL yourself for Android and deploy it with your application.



  • Hi SGaist,

    So if I understand I have to modify my native code to call the Java cryptography APIs via JNI or to statically link against a cryptography library .Is it true ? İf is It true , how can I modify my native code to call the Java cryptography APIs via JNI or to statically link against a cryptography library to solve SSL problem in qml side.Because I can't find any example to do this in windows side.Can you help me about this important problem. Im find this example like below but in linux side , Is it correct example?

    http://doc.qt.io/qt-5/opensslsupport.html

    Thanks


  • Lifetime Qt Champion

    Currently, the most straightforward is to provide your version of OpenSSL with your application.

    Look for OpenSSL on Android, and then rebuild Qt to use it directly.


Log in to reply