Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › Cannot using HttpRequest / XMLHTTPREQUEST on android – qml: SSL handshake failed

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #23096

    Bancha Rajainthong

    I have developed a parcel tracking app with Felgo using HttpRequest to get data from RestAPI.

    Everythings work fine during development on Windows10.

    But the application does not work on Android device (android 9) or Android emulator (x86).

    I also try to build the app with Openssl lib from this repo https://github.com/KDAB/android_openssl

    But not working. Not sure what happen just saw the “qml: SSL handshake failed”  in debug output

    Which seems to be related to OpenSSL.

    I am using Felgo 3, Qt 5.13.2 Android SDK 26 and NDK 21


    I also check the OpenSSL is supported and running with below version

    Compile with: OpenSSL 1.1.1b 26 Feb 2019

    Running with: OpenSSL 1.1.1c 28 May 2019






    Bancha Rajainthong

    After searching for a couple of days I think the problem may come from Android runtime permission.

    The “SSL handshake failed” is hinted me to the wrong clue.


    Felgo User


    Do you mind sharing what’s your discovery?

    I am running into the same problem for android target after upgrade server to https.

    IOS works, wasm works.





    Felgo Team


    can you share the uses-permission and uses-feature tags that your generated AndroidManifest.xml contains? You can find it at <path to your build folder>/android-build/

    Are you using any native device features like camera, location etc?



    Felgo Team

    Felgo User

    Thanks Alex for looking into this.

    The demo model does work for me.

    So my guess, the problem might be on server side.

    Our server side is using Node.js with https. the SSL cert is issued by zerossl, very standards settings.

    IOS, and web access are all fine. so still puzzled here, why handshake failed.

    Below is permission and features as your request.

    Please help and advise what  I can try further.

    Can you also try to access this end point?


    Again, thanks in advance.

    <!– The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
    Remove the comment if you do not require these default permissions. –>
    <uses-permission android:name=”android.permission.INTERNET” />
    <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” />
    <uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” />
    <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />
    <uses-permission android:name=”android.permission.CAMERA” />
    <uses-permission android:name=”android.permission.RECORD_AUDIO” />
    <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />

    <uses-permission android:name=”android.permission.INTERNET”/>
    <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE”/>

    <!– The following comment will be replaced upon deployment with default features based on the dependencies of the application.
    Remove the comment if you do not require these default features. –>
    <uses-feature android:name=”android.hardware.camera” android:required=”false” />
    <uses-feature android:name=”android.hardware.camera.autofocus” android:required=”false” />
    <uses-feature android:name=”android.hardware.microphone” android:required=”false” />
    <uses-feature android:glEsVersion=”0x00020000″ android:required=”true” />


    Felgo Team


    I just tried the example from the docs, just replacing the url with yours and this error on both on Android and iOS as well:

    Error: SSL handshake failed

    I tested with the iOS and Android Live Client. So I assume the issue is indeed located at your server probably.


Viewing 7 posts - 1 through 7 (of 7 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded