简体   繁体   中英

Filetransfer.download not working properly in some mobiles

Given below is my code (form is the name of the file i want to download)

var fileURI = "http://myurl/"+form;           
window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fs){            
    var filepath = fs.root.fullPath + "storage/emulated/0/Download/" + Form; 
    alert(filepath);
    var ft = new FileTransfer();
    ft.download(fileURI, filepath, function(entry){
        alert(entry.fullPath);
    }, function() {
        alert("error");
    });

});

amazingly the code is working fine on my android mobile phone, but the same is not true for other android devices that are using this application. I am dumbstruck at the moment, any type of help will be amazing presently. TIA

window.open('url','_system');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM