Can't Read A File From Android Directory Using Cordova-plugin-file Plugin
I'm trying to read a txt file located in the 'sdcard' directory of my android phone. but the 'onloadend' event of the 'FileReader' never fires, in fact none of the events seem to w
Solution 1:
Just found out the problem. It appears that phonegap-build doesn't support the most recent version of the cordova-plugin-file.
The most recent version released (on npm) is 4.1.0 and on phonegap-build is 3.0.0.
Basically just need to change the line, in config.xml:
<gap:plugin name="cordova-plugin-file"source="npm" />
To:
<gap:plugin name="cordova-plugin-file" version="3.0.0"source="npm" />
Post a Comment for "Can't Read A File From Android Directory Using Cordova-plugin-file Plugin"