Hi,
I have problems with “network.request” when the url is starting with https - but only with Android.
I’m trying to do this:
network.request("https://workplandev.grothe-gruppe.de:4444/tools/mobile/read.aspx?f=1&action=ping", "GET", function(evt) if evt.isError then native.showAlert("Error!", "There was an error...") else native.showAlert("Success!", "Everything is alright...") end end)
Everything is fine in the simulator, my browser and on my iOS device (iPhone 5). But when I try to do this on my Android device (Nexus 7) I always get the “error” message.
On the other hand… when I’m trying to do this:
network.request("https://encrypted.google.com", "GET", function(evt) if evt.isError then native.showAlert("Error!", "There was an error...") else native.showAlert("Success!", "Everything is alright...") end end)
Even the Android device shows the “success” message. So it seems that there is a problem with the first url. But what is wrong with it?! The only platform that gives me an error with that url is the android device.
Maybe someone can help me to be clearer what could cause the problem (with ONLY that https-url and ONLY on Android devices)…
Thank you very much in advance!!!
Greetings,
Kai