Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
FileTransfer error when running in background
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leif Ullman  
View profile  
 More options Jan 8, 2:59 pm
From: Leif Ullman <leif.ull...@gmail.com>
Date: Tue, 8 Jan 2013 11:59:28 -0800 (PST)
Local: Tues, Jan 8 2013 2:59 pm
Subject: FileTransfer error when running in background

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.ht...)
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".  Is there a workaround for this or is background uploading no
longer supported?  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shazron  
View profile  
 More options Jan 8, 6:20 pm
From: Shazron <shaz...@gmail.com>
Date: Tue, 8 Jan 2013 15:20:14 -0800
Local: Tues, Jan 8 2013 6:20 pm
Subject: Re: [PhoneGap] FileTransfer error when running in background

What iOS version were you using when it worked?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leif Ullman  
View profile  
 More options Jan 8, 10:36 pm
From: Leif Ullman <leif.ull...@gmail.com>
Date: Tue, 8 Jan 2013 19:36:18 -0800 (PST)
Local: Tues, Jan 8 2013 10:36 pm
Subject: Re: [PhoneGap] FileTransfer error when running in background

6.0.1, but it's been working on prior versions as it's been live since
spring.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shazron  
View profile  
 More options Jan 9, 2:30 pm
From: Shazron <shaz...@gmail.com>
Date: Wed, 9 Jan 2013 11:30:49 -0800
Local: Wed, Jan 9 2013 2:30 pm
Subject: Re: [PhoneGap] FileTransfer error when running in background

Not sure what's going on. Seems like an iOS issue to me since Cordova has
no control of cutting off network access when an app is backgrounded -- it
could be a iOS config issue possibly.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leif Ullman  
View profile  
 More options Jan 9, 11:54 pm
From: Leif Ullman <leif.ull...@gmail.com>
Date: Wed, 9 Jan 2013 21:54:17 -0700
Local: Wed, Jan 9 2013 11:54 pm
Subject: Re: [PhoneGap] FileTransfer error when running in background

Do you have any suggestions where to look if it was an iOS config issue?
 The way I started my project was with the urban airship template (
https://github.com/urbanairship/phonegap-ua-push) so my settings are
whatever those defaults are.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shazron  
View profile  
 More options Jan 10, 3:19 pm
From: Shazron <shaz...@gmail.com>
Date: Thu, 10 Jan 2013 12:19:52 -0800
Local: Thurs, Jan 10 2013 3:19 pm
Subject: Re: [PhoneGap] FileTransfer error when running in background

Probably something in here:
http://developer.apple.com/library/ios/#documentation/iphone/conceptu...

Looks like the limit to finish up tasks is 5 seconds, the app has to
request more time -- and come to think of it, FileTransfer does not do this
currently (although the CDVLocalStorage plugin in onResignActive does:
https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/...

If you want to file an enhancement request, that would be great.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leif Ullman  
View profile  
 More options Jan 10, 4:48 pm
From: Leif Ullman <leif.ull...@gmail.com>
Date: Thu, 10 Jan 2013 14:48:18 -0700
Local: Thurs, Jan 10 2013 4:48 pm
Subject: Re: [PhoneGap] FileTransfer error when running in background

You got it!

https://issues.apache.org/jira/browse/CB-2190

Thanks for providing the links as well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »