Phonegap: Download large files to Windows phones

I am developing a mobile application using Phonegap and I need to download zip files, which can be more than 50 MB.

I am using the Cordova file transfer plugin to complete this task. Now, on iOS and Android, this works fine, but when I do the same on Windows Phone, the application freezes with files larger than 20 MB.

System.OutOfMemoryException: Not enough memory to continue running the program.

Is there a line in the PhonGap documentation that says that downloading is only supported on iOS and Android? http://docs.phonegap.com/en/edge/cordova_file_file.md.html#FileTransfer

It is also possible (only on iOS and Android) to download a file from a remote server and save it on the device.

But what confuses me is that again this site says that support is being added at some point (?) Http://phonegap.com/2012/04/11/phonegap-1-6-released/

Windows File Upload API

So, is this really supported on Windows or not? Or is there an alternative way to do this on Windows phones.

+4
source share
1 answer

Well, I did not understand how to do this with the Apache File-Transfer plugin directly.

I found this background downloader that was able to successfully download files at a speed of 100 MB (probably even more) on Windows Phone 8.1.

https://github.com/sgrebnov/cordova-plugin-background-download

0
source

Source: https://habr.com/ru/post/1599108/


All Articles