Hi,
I have an app which creates a stagewebview that loads an html page from our server.
The html page has a javascript function in it which makes an ajax call to our server (using jquery). It's an https call, but we have a valid security certificate.
I have observed that when this javascript function is called from the app on desktop and android then it works fine i.e. it POSTs data to the server and gets the expected response. However, on iOS it fails with a simple status '0' in the jquery error event.
But if I change the code so that the app instead calls a javascript function that starts a timeout, and then I invoke the ajax call from that, then it works.
Is there a logical explanation for this? Some sort of security layer in Safari maybe?
thanks,
Nick