Bug Report
Critical Issue. Need a solution. Please help me guys.
Problem
This plugin works perfectly with internal storage. But on some of the smartphones like Samsung A7 & one Huawei, it is not working with the external sdcard. Even after giving external storage path, it is always searching on internal storage.
What is expected to happen?
It should work with internal storage as well as external sdcard storage
What does actually happen?
Not working with external sdcard storage. Even after giving external storage path, it is always searching on internal storage.
Information
I have tested this plugin on Ionic1 project. Mount sdcard on your device. Check any file which exists on sdcard ($cordovaFile.checkFile), it will through error code 1 NOT_FOUND_ERR. Now copy same file on internal storage, it will work as expected. Because it is searching file only on internal storage not on external storage.
Command or Code
$cordovaFile.checkFile('file://sdcard/', "image.jpeg")
.then(function (success) {
// success
}, function (error) {
// error it will through error code 1 NOT_FOUND_ERR
});
Environment, Platform, Device
Ionic1
Samsung A7, Huawei