[ 
https://issues.apache.org/jira/browse/CB-11906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15651035#comment-15651035
 ] 

Doug Estey edited comment on CB-11906 at 11/9/16 2:03 PM:
----------------------------------------------------------

So far the only workarounds are:

1) Implement a timeout less than 60 seconds and handle the failure in your 
frontend client.
2) Re-architect your API to either:
  a) Confidently take less than 60 seconds to start transmitting a response 
(iOS 10 will not kill the connection mid-transfer once it has actually started 
receiving a payload.)
  b) Respond immediately with a token (this guy's idea: 
https://forums.developer.apple.com/thread/64526#193219). Then alter your 
frontend to poll the server with said token and wait for a response with the 
data you need.



was (Author: dougestey):
So far the only workarounds are:

1) Implement a timeout less than 60 seconds and handle the failures in your 
frontend client.
2) Re-architect your API to either:
  a) Confidently take less than 60 seconds to start transmitting a response 
(iOS 10 will not kill the connection mid-transfer once it has actually started 
receiving a payload.)
  b) Respond immediately with a token (this guy's idea: 
https://forums.developer.apple.com/thread/64526#193219). Then alter your 
frontend to poll the server with said token and wait for a response with the 
data you need.


> Ajax call fails on iOS 10 but works fine on previous versions for Cordova 
> application
> -------------------------------------------------------------------------------------
>
>                 Key: CB-11906
>                 URL: https://issues.apache.org/jira/browse/CB-11906
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>         Environment: ios10
>            Reporter: Nikita Ahluwalia
>              Labels: ios10, ios10-known-issue
>
> I am using the latest iOS platform and plugins in my cordova application. The 
> app works fine on older versions of iOS but not on iOS 10. I am getting 
> timeout error (I already have timeout in my application. But this seems to be 
> even before establishing connection with web service). Tried removing 
> platform and adding again. Also created a fresh project. Still no luck. The 
> app works fine on Android as well. The same application pointing to 
> webservice on staging environment works (on iOS 10 too) but when pointing to 
> production APIs, it does not work on iOS 10 but works on older version.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to