a) Download a zip file, extract it and save it to the cordova.file.dataDirectory
AND
b) Check if a folder on the external (emulated) storage exist
Actual Behaviour
On two devices everything works fine.
On the other two neither can i
a) download a ZIP file (no error but does not even start a download)
AND
b) I can not even check if a folder exists with
$(".butCheckFolder").click(function(){ store = cordova.file.externalRootDirectory; window.resolveLocalFileSystemURL(store + "gifs", function () { $('.butCheckFolder .item-title span').html('Folder found.'); }, function (error) { $('.butCheckFolder .item-title span').html('Folder not found.'); }); });
Reproduce Scenario (including but not limited to)
Use the standard example, but on different devices.
Try one that has no SD card mountable for example.
Steps to Reproduce
--
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Different Android versions.
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Works: on my BQ smartphone (no SD card mountable) and my Samsung Alpha (several years old)
Does not work: on a Huawei smartphone and my Lenovo tablet
Cordova CLI version and cordova platform version
cordova --version 9.0.0
cordova platform version android 7.1.4
Expected Behaviour
a) Download a zip file, extract it and save it to the cordova.file.dataDirectory AND b) Check if a folder on the external (emulated) storage exist
Actual Behaviour
On two devices everything works fine. On the other two neither can i a) download a ZIP file (no error but does not even start a download) AND b) I can not even check if a folder exists with
$(".butCheckFolder").click(function(){ store = cordova.file.externalRootDirectory; window.resolveLocalFileSystemURL(store + "gifs", function () { $('.butCheckFolder .item-title span').html('Folder found.'); }, function (error) { $('.butCheckFolder .item-title span').html('Folder not found.'); }); });
Reproduce Scenario (including but not limited to)
Use the standard example, but on different devices. Try one that has no SD card mountable for example.
Steps to Reproduce
--
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Different Android versions.
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Works: on my BQ smartphone (no SD card mountable) and my Samsung Alpha (several years old) Does not work: on a Huawei smartphone and my Lenovo tablet
Cordova CLI version and cordova platform version
cordova --version 9.0.0 cordova platform version android 7.1.4
Plugin version
1.4.2
Sample Code that illustrates the problem
sync = ContentSync.sync({ src: 'http://www.xxx.com/' + whatpack + '.zip', id: 'gifs', type: 'merge' });
Logs taken while reproducing problem
--