Hi *,
I'm writting an application with Kendo UI, which schould build a https connection to a server. The application runs pretty well in the simulator, but after the installation on a mobile device (Android 4.1.2), the application is not able to build an Internet connection, namely a connection to the target server.
I use the following code to build the connection:
From the mobile device, I always receive a value "0" as Status, namely "Status: 0" (See line 9).
By the ways, I also use the kendoui remote datasource to get data; however, it is not working too on the mobile device; see the following code.
I hope you can help me.
Best regards,
I'm writting an application with Kendo UI, which schould build a https connection to a server. The application runs pretty well in the simulator, but after the installation on a mobile device (Android 4.1.2), the application is not able to build an Internet connection, namely a connection to the target server.
I use the following code to build the connection:
var check = new XMLHttpRequest(); check.open("GET", "https://IP:PORT/test" ,false); check.setRequestHeader("Authorization", utils.getServerAuthString()); check.onreadystatechange = function () { if (check.readyState == 4) { if (check.status == 200) { utils.saveServerData(); } else { utils.showError("status:" + check.status); } } } check.send(null);From the mobile device, I always receive a value "0" as Status, namely "Status: 0" (See line 9).
By the ways, I also use the kendoui remote datasource to get data; however, it is not working too on the mobile device; see the following code.
viewModel: kendo.observable({ datasource: new kendo.data.DataSource({ transport: { read: { cache: false, url: URL, dataType: "json", beforeSend: function(req) { req.setRequestHeader('Authorization', utils.getServerAuthString()); } } } }) })I hope you can help me.
Best regards,