AnsweredAssumed Answered

SSL and Qt 10.2.5 for iOS

Question asked by GozChris on Mar 27, 2015
Latest reply on Mar 30, 2015 by LDanzinger-esristaff

I am using the Qt Runtime SDK (10.2.5) to make an app for OS X, Android and iOS. I have also installed Esri's build of the Qt SDK for iOS (, and made sure the post installer is pointing to the correct qmake file.


When I try to query a secured service from my iPhone (after the map is ready), I get the dreaded "SSL handshake failed" error. The process works fine in OS X and Android, but not in iOS.


I was able to access this same service on all three platforms during the Qt 10.3 beta program.


Any ideas on how to get this working again?


Snippet of code is below.







code snippet:


    Button {

        text:"Get Users"

        visible: isEverythingReady


        onClicked: {

            console.log("getting data from table");





    GeodatabaseFeatureServiceTable {

        id: myTable


        onQueryServiceFeaturesStatusChanged: {

            if (queryServiceFeaturesStatus === Enums.QueryFeaturesStatusCompleted) {

                try {

                    console.log("QUERY COMPLETE!!!");


                    var iterator = queryServiceFeaturesResult.iterator;

                    var featureInTable;


                    while (iterator.hasNext()) {

                        row =;

                        console.log("field1", featureInTable.attributeValue(nameoffield1));

                        console.log("field2", featureInTable.attributeValue(nameoffield2));



                catch(err) {

                    console.log("oops", err.message, err.lineNumber);


            } else if (queryServiceFeaturesStatus === Enums.QueryFeaturesStatusErrored) {

                console.log("!!!! ERROR onQueryServiceFeaturesStatusChanged", queryServiceFeaturesError);




        function getTheUsers() {

            console.log("setting up table properties");

            var urlString = somelayerinafeatureservice;

            myTable.url = urlString;

            myTable.credentials.userName = someserfromsignin;

            myTable.credentials.password = somepwdfromsignin;


            myQuery.where = "1=1";





    Query {

        id: myQuery

        returnGeometry: false