Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.4.0
-
None
-
Windows 8.1, Visual Studio with Cordova, Emulators, native Devices
Description
I have to read and write local JSON-Files in my Cordova-Project. I use the current and previous versions of File-Plugin.
Writing works fine under all platforms.
Reading under iOS and Android and Windows 8.1 works.
Reading under Windows Phone 8 (device and emulator) has a strange effect: instead of getting a string I get the already decoded object stored in the JSON-File
...
function GotFileEntry(fileEntry) {
fileEntry.file(GotFile, Fail);
function GotFile(file) {
var reader = new FileReader();
reader.onload = function (evt)
;
reader.onerror = function (evt)
;
reader.readAsText(file);
}