You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ian Clelland (JIRA)" <ji...@apache.org> on 2014/04/07 17:50:15 UTC

[jira] [Commented] (CB-6408) Upload files greater than 100 MB when the app is in background.

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

Ian Clelland commented on CB-6408:
----------------------------------

I don't think this is a matter of device memory as much as it is about OS policy. On iOS, applications run in the background at the pleasure of the operating system. Generally, an application moved to the background has only a few seconds to clean up before it is stopped (and possibly terminated). If a file transfer is going on at the time that the application is backgrounded, we do request extra time for it to finish, but I don't think that iOS will let the application run indefinitely for a very large transfer.

A better solution might be to have the application gracefully stop the transfer, and give the client server the capability to resume an interrupted upload.

> Upload files greater than 100 MB when the app is in background.
> ---------------------------------------------------------------
>
>                 Key: CB-6408
>                 URL: https://issues.apache.org/jira/browse/CB-6408
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS, Plugin File Transfer
>    Affects Versions: 3.1.0
>         Environment: ios
>            Reporter: Venkata Kiran
>
> If I need to upload files of bigger size, say more than 100 MB, it takes any where between 2 minutes to 20 minutes based in the network speed. And if the application is active all through then the file is uploading without any issues. But if the application is switched to background mode, then the upload is failing. I think cordova should support uploading bigger files in background as it is no longer a rare use case because of the bigger memory availability on the devices.



--
This message was sent by Atlassian JIRA
(v6.2#6252)