[jira] [Commented] (CB-2190) FileTransfer does not request more time than the 5 second limit when placed in background.

2014-02-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13905593#comment-13905593
 ] 

ASF subversion and git services commented on CB-2190:
-

Commit a588236cbdb3c81e2b38b8bfc036aa89520b28d5 in 
cordova-plugin-file-transfer's branch refs/heads/dev from [~jan pittner]
[ 
https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file-transfer.git;h=a588236
 ]

CB-2190 Make backgroundTaskId apply to downloads as well. Move backgroundTaskId 
to the delegate.


 FileTransfer does not request more time than the 5 second limit when placed 
 in background.
 --

 Key: CB-2190
 URL: https://issues.apache.org/jira/browse/CB-2190
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Affects Versions: 2.2.0
 Environment: iOS 6.0.1, Cordova 2.2.0.
Reporter: Leif Ullman
Assignee: Ian Clelland
 Fix For: 2.7.0

 Attachments: CDVFileTransfer.h, CDVFileTransfer.m


 I've been running into an issue using FileTransfer on iOS that cropped up as 
 part of my upgrade to Cordova 2.2.  Previously I had been on PhoneGap 1.2 (a 
 long time between upgrades I know).  When using the 1.2 version, I could 
 start a filetransfer upload (using sample code from here: 
 http://docs.phonegap.com/en/2.2.0/cordova_media_capture_capture.md.html#Capture)
  and it would continue to run if I returned to the home screen or if I locked 
 the device.  Now it appears that suspending the app will cause a 
 FileTransferError to occur with error code 3 and error message The request 
 timed out.  
 After trading some emails with Shazron, he pointed out that the limit to 
 finish up background tasks is 5 seconds.  If the task will take longer, the 
 app has to request more time -- and FileTransfer does not do this currently 
 (although the CDVLocalStorage plugin in onResignActive does: 
 https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/CDVLocalStorage.m#L378



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-2190) FileTransfer does not request more time than the 5 second limit when placed in background.

2014-02-15 Thread Jan Pittner (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13902391#comment-13902391
 ] 

Jan Pittner commented on CB-2190:
-

This issue is only fixed for (chunked) uploads, not downloads. Download tasks 
are aborted and do not request time. Also, downloads don't run in a background 
thread, which substantially slows down the UI. Any chance this can get 
re-opened and fixed for downloads?


 FileTransfer does not request more time than the 5 second limit when placed 
 in background.
 --

 Key: CB-2190
 URL: https://issues.apache.org/jira/browse/CB-2190
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Affects Versions: 2.2.0
 Environment: iOS 6.0.1, Cordova 2.2.0.
Reporter: Leif Ullman
Assignee: Ian Clelland
 Fix For: 2.7.0

 Attachments: CDVFileTransfer.h, CDVFileTransfer.m


 I've been running into an issue using FileTransfer on iOS that cropped up as 
 part of my upgrade to Cordova 2.2.  Previously I had been on PhoneGap 1.2 (a 
 long time between upgrades I know).  When using the 1.2 version, I could 
 start a filetransfer upload (using sample code from here: 
 http://docs.phonegap.com/en/2.2.0/cordova_media_capture_capture.md.html#Capture)
  and it would continue to run if I returned to the home screen or if I locked 
 the device.  Now it appears that suspending the app will cause a 
 FileTransferError to occur with error code 3 and error message The request 
 timed out.  
 After trading some emails with Shazron, he pointed out that the limit to 
 finish up background tasks is 5 seconds.  If the task will take longer, the 
 app has to request more time -- and FileTransfer does not do this currently 
 (although the CDVLocalStorage plugin in onResignActive does: 
 https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/CDVLocalStorage.m#L378



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-2190) FileTransfer does not request more time than the 5 second limit when placed in background.

2013-03-21 Thread Ian Clelland (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13609400#comment-13609400
 ] 

Ian Clelland commented on CB-2190:
--

Local ad hoc testing suggests that this is working; I'll take any suggestions 
on how to automatically test this within the device. 

Pull request here: https://github.com/apache/cordova-ios/pull/40

 FileTransfer does not request more time than the 5 second limit when placed 
 in background.
 --

 Key: CB-2190
 URL: https://issues.apache.org/jira/browse/CB-2190
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Affects Versions: 2.2.0
 Environment: iOS 6.0.1, Cordova 2.2.0.
Reporter: Leif Ullman
Assignee: Ian Clelland
 Attachments: CDVFileTransfer.h, CDVFileTransfer.m


 I've been running into an issue using FileTransfer on iOS that cropped up as 
 part of my upgrade to Cordova 2.2.  Previously I had been on PhoneGap 1.2 (a 
 long time between upgrades I know).  When using the 1.2 version, I could 
 start a filetransfer upload (using sample code from here: 
 http://docs.phonegap.com/en/2.2.0/cordova_media_capture_capture.md.html#Capture)
  and it would continue to run if I returned to the home screen or if I locked 
 the device.  Now it appears that suspending the app will cause a 
 FileTransferError to occur with error code 3 and error message The request 
 timed out.  
 After trading some emails with Shazron, he pointed out that the limit to 
 finish up background tasks is 5 seconds.  If the task will take longer, the 
 app has to request more time -- and FileTransfer does not do this currently 
 (although the CDVLocalStorage plugin in onResignActive does: 
 https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/CDVLocalStorage.m#L378

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-2190) FileTransfer does not request more time than the 5 second limit when placed in background.

2013-03-18 Thread Ian Clelland (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13606015#comment-13606015
 ] 

Ian Clelland commented on CB-2190:
--

I'm merging this into the current (2.5) codebase, and will take a look at how 
testable it is in the next day or so.

 FileTransfer does not request more time than the 5 second limit when placed 
 in background.
 --

 Key: CB-2190
 URL: https://issues.apache.org/jira/browse/CB-2190
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Affects Versions: 2.2.0
 Environment: iOS 6.0.1, Cordova 2.2.0.
Reporter: Leif Ullman
Assignee: Ian Clelland
 Attachments: CDVFileTransfer.h, CDVFileTransfer.m


 I've been running into an issue using FileTransfer on iOS that cropped up as 
 part of my upgrade to Cordova 2.2.  Previously I had been on PhoneGap 1.2 (a 
 long time between upgrades I know).  When using the 1.2 version, I could 
 start a filetransfer upload (using sample code from here: 
 http://docs.phonegap.com/en/2.2.0/cordova_media_capture_capture.md.html#Capture)
  and it would continue to run if I returned to the home screen or if I locked 
 the device.  Now it appears that suspending the app will cause a 
 FileTransferError to occur with error code 3 and error message The request 
 timed out.  
 After trading some emails with Shazron, he pointed out that the limit to 
 finish up background tasks is 5 seconds.  If the task will take longer, the 
 app has to request more time -- and FileTransfer does not do this currently 
 (although the CDVLocalStorage plugin in onResignActive does: 
 https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/CDVLocalStorage.m#L378

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira