Start a new topic
Solved

iOS10 AJAX timeout

Hello everyone,


The brand new iOs 10 automatically terminates (time-out) all ajax calls that exceed 1 minute duration.  

https://www.mail-archive.com/issues@cordova.apache.org/msg72940.html


https://forums.developer.apple.com/thread/64526


This is an operating system level issue that is affecting every cordova/phonegap hybrid app, so we are keeping an eye on any answer/statement from Apple.

We will post any updates here.   As usual, please feel free to share your comments/ findings.


Thanks and kind regards,

Julian



3 people have this problem

Thanks, Villat !  https://bugs.webkit.org/show_bug.cgi?id=163814


Looking forward to testing it soon. 

Hi,
we tested our existing App after installing the iOS 10.2 Beta 3 update on one of our Test Devices. Sadly it still times out after one minute.

 

Hi Ralf,


thanks for the update !   Have you tried executing an AJAX call which has a long timeout ? (on iOs 10.2 Beta 3)


Have a nice weekend!

Julian


$.ajax({
    url: "test.html",
    error: function(){
        alert("Error");
    },
    success: function(){
        alert("Success");
    },
    timeout: 120000 // sets timeout to 120 seconds
});
Hi Julian,

we tested with a Neptune App that has said issue under iOS 10 but works fine under iOS 9. It behaves the same under iOS 10.2 and the latest Beta.

 

Hi Ralf, thanks for the update.


I have tested iOs 10.2 Beta 5, overriding the timeout parameter of ajax calls to 5 minutes.  The requests still terminate after 60 seconds.

Hello,

I have tested our Apps with the newest iOS 10.2.1 Beta 3 and the issue seems to be solved. I have kept an ajax call open for three minutes through debuging in the backend and had no timeout issues.

 


2 people like this

Thank you very much for the update Ralf.


I tested it myself (iOS 10.2.1 Beta 3)  and I also confirm that the issue has been fixed.  6 minutes and counting here ;-)



Login or Signup to post a comment