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?
On Tue, Jan 8, 2013 at 11:59 AM, Leif Ullman <leif.ull...@gmail.com> wrote:
> 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 received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phonegap@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
> For more info on PhoneGap or to download the code go to www.phonegap.com
> To compile in the cloud, check out build.phonegap.com
On Tuesday, January 8, 2013 4:20:14 PM UTC-7, Shazron Abdullah wrote:
> What iOS version were you using when it worked?
> On Tue, Jan 8, 2013 at 11:59 AM, Leif Ullman <leif....@gmail.com<javascript:> > > wrote:
>> 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 received this message because you are subscribed to the Google >> Groups "phonegap" group. >> To post to this group, send email to phon...@googlegroups.com<javascript:> >> To unsubscribe from this group, send email to >> phonegap+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/phonegap?hl=en?hl=en
>> For more info on PhoneGap or to download the code go to www.phonegap.com
>> To compile in the cloud, check out build.phonegap.com
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.
On Tue, Jan 8, 2013 at 7:36 PM, Leif Ullman <leif.ull...@gmail.com> wrote:
> 6.0.1, but it's been working on prior versions as it's been live since
> spring.
> On Tuesday, January 8, 2013 4:20:14 PM UTC-7, Shazron Abdullah wrote:
>> What iOS version were you using when it worked?
>> On Tue, Jan 8, 2013 at 11:59 AM, Leif Ullman <leif....@gmail.com> wrote:
>>> 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<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 received this message because you are subscribed to the Google
>>> Groups "phonegap" group.
>>> To post to this group, send email to phon...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> phonegap+u...@**googlegroups.com
>>> For more info on PhoneGap or to download the code go to www.phonegap.com
>>> To compile in the cloud, check out build.phonegap.com
>> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phonegap@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
> For more info on PhoneGap or to download the code go to www.phonegap.com
> To compile in the cloud, check out build.phonegap.com
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.
On Wed, Jan 9, 2013 at 12:30 PM, Shazron <shaz...@gmail.com> wrote:
> 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.
> On Tue, Jan 8, 2013 at 7:36 PM, Leif Ullman <leif.ull...@gmail.com> wrote:
>> 6.0.1, but it's been working on prior versions as it's been live since
>> spring.
>> On Tuesday, January 8, 2013 4:20:14 PM UTC-7, Shazron Abdullah wrote:
>>> What iOS version were you using when it worked?
>>> On Tue, Jan 8, 2013 at 11:59 AM, Leif Ullman <leif....@gmail.com> wrote:
>>>> 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<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 received this message because you are subscribed to the Google
>>>> Groups "phonegap" group.
>>>> To post to this group, send email to phon...@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> phonegap+u...@**googlegroups.com
>>>> For more info on PhoneGap or to download the code go to
>>>> www.phonegap.com
>>>> To compile in the cloud, check out build.phonegap.com
>>> --
>> -- You received this message because you are subscribed to the Google
>> Groups "phonegap" group.
>> To post to this group, send email to phonegap@googlegroups.com
>> To unsubscribe from this group, send email to
>> phonegap+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/phonegap?hl=en?hl=en
>> For more info on PhoneGap or to download the code go to www.phonegap.com
>> To compile in the cloud, check out build.phonegap.com
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phonegap@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
> For more info on PhoneGap or to download the code go to www.phonegap.com
> To compile in the cloud, check out build.phonegap.com
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.
On Wed, Jan 9, 2013 at 8:54 PM, Leif Ullman <leif.ull...@gmail.com> wrote:
> 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.
> On Wed, Jan 9, 2013 at 12:30 PM, Shazron <shaz...@gmail.com> wrote:
>> 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.
>> On Tue, Jan 8, 2013 at 7:36 PM, Leif Ullman <leif.ull...@gmail.com>wrote:
>>> 6.0.1, but it's been working on prior versions as it's been live since
>>> spring.
>>> On Tuesday, January 8, 2013 4:20:14 PM UTC-7, Shazron Abdullah wrote:
>>>> What iOS version were you using when it worked?
>>>> On Tue, Jan 8, 2013 at 11:59 AM, Leif Ullman <leif....@gmail.com>wrote:
>>>>> 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<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 received this message because you are subscribed to the Google
>>>>> Groups "phonegap" group.
>>>>> To post to this group, send email to phon...@googlegroups.com
>>>>> To unsubscribe from this group, send email to
>>>>> phonegap+u...@**googlegroups.com
>>>>> For more info on PhoneGap or to download the code go to
>>>>> www.phonegap.com
>>>>> To compile in the cloud, check out build.phonegap.com
>>>> --
>>> -- You received this message because you are subscribed to the Google
>>> Groups "phonegap" group.
>>> To post to this group, send email to phonegap@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> phonegap+unsubscribe@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>> For more info on PhoneGap or to download the code go to www.phonegap.com
>>> To compile in the cloud, check out build.phonegap.com
>> --
>> -- You received this message because you are subscribed to the Google
>> Groups "phonegap" group.
>> To post to this group, send email to phonegap@googlegroups.com
>> To unsubscribe from this group, send email to
>> phonegap+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/phonegap?hl=en?hl=en
>> For more info on PhoneGap or to download the code go to www.phonegap.com
>> To compile in the cloud, check out build.phonegap.com
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phonegap@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
> For more info on PhoneGap or to download the code go to www.phonegap.com
> To compile in the cloud, check out build.phonegap.com
> 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.
> On Wed, Jan 9, 2013 at 8:54 PM, Leif Ullman <leif.ull...@gmail.com> wrote:
>> 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.
>> On Wed, Jan 9, 2013 at 12:30 PM, Shazron <shaz...@gmail.com> wrote:
>>> 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.
>>> On Tue, Jan 8, 2013 at 7:36 PM, Leif Ullman <leif.ull...@gmail.com>wrote:
>>>> 6.0.1, but it's been working on prior versions as it's been live since
>>>> spring.
>>>> On Tuesday, January 8, 2013 4:20:14 PM UTC-7, Shazron Abdullah wrote:
>>>>> What iOS version were you using when it worked?
>>>>> On Tue, Jan 8, 2013 at 11:59 AM, Leif Ullman <leif....@gmail.com>wrote:
>>>>>> 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<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 received this message because you are subscribed to the Google
>>>>>> Groups "phonegap" group.
>>>>>> To post to this group, send email to phon...@googlegroups.com
>>>>>> To unsubscribe from this group, send email to
>>>>>> phonegap+u...@**googlegroups.com
>>>>>> For more info on PhoneGap or to download the code go to
>>>>>> www.phonegap.com
>>>>>> To compile in the cloud, check out build.phonegap.com
>>>>> --
>>>> -- You received this message because you are subscribed to the Google
>>>> Groups "phonegap" group.
>>>> To post to this group, send email to phonegap@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> phonegap+unsubscribe@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>>> For more info on PhoneGap or to download the code go to
>>>> www.phonegap.com
>>>> To compile in the cloud, check out build.phonegap.com
>>> --
>>> -- You received this message because you are subscribed to the Google
>>> Groups "phonegap" group.
>>> To post to this group, send email to phonegap@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> phonegap+unsubscribe@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>> For more info on PhoneGap or to download the code go to www.phonegap.com
>>> To compile in the cloud, check out build.phonegap.com
>> --
>> -- You received this message because you are subscribed to the Google
>> Groups "phonegap" group.
>> To post to this group, send email to phonegap@googlegroups.com
>> To unsubscribe from this group, send email to
>> phonegap+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/phonegap?hl=en?hl=en
>> For more info on PhoneGap or to download the code go to www.phonegap.com
>> To compile in the cloud, check out build.phonegap.com
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phonegap@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
> For more info on PhoneGap or to download the code go to www.phonegap.com
> To compile in the cloud, check out build.phonegap.com