Closed vikramjo closed 2 years ago
Without this change the cached file path shows up in the following format (for cordova-ios 6.1.0, with scheme set to cdvfile and hostname set to localhost in config file):
cdvfile://localhost/library-nosync/imgcache/hashedfilename.jpg
System cannot find the file there. Hence, it throws the error "Failed to load resource: the server responded with a status of 404 ()"
After making this change, the cached file path shows up as:
cdvfile://localhost/_appfile/var/mobile/Containers/Data/Application/approotdirectoryname/Library/NoCloud/imgcache/hashedfilename.jpg
which is where the cached file is actually located.
Please merge this pull request
Without this change the cached file path shows up in the following format (for cordova-ios 6.1.0, with scheme set to cdvfile and hostname set to localhost in config file):
cdvfile://localhost/library-nosync/imgcache/hashedfilename.jpg
System cannot find the file there. Hence, it throws the error "Failed to load resource: the server responded with a status of 404 ()"
After making this change, the cached file path shows up as:
cdvfile://localhost/_appfile/var/mobile/Containers/Data/Application/approotdirectoryname/Library/NoCloud/imgcache/hashedfilename.jpg
which is where the cached file is actually located.