I am using Cordova File plugin to read a JSON on local filesystem. It works perfectly except for some file where I get an error :
SyntaxError: Unexpected EOF
These files probably have wrong characters and I need to fix them but my problem is not there. My problem is that the plugin logs the error (on the javascript side) but never calls any error callback !!!
When I debug and I follow step by step, on the javascript side I get to the exec() command in FileReader.js, I then follow step by step in objectiveC and it seems perfectly fine, but when ObjectiveC returns it results back with its sendPluginResult, I get this error message in javascript console and no error callback is thrown....
Anybody ever experienced this ? Any idea to catch the error ?
Thank you very much.