ngCordova File plugin documentation


#1

I’m getting the following errors using ngCordova’s File implementation. Changing them to the suggested methods gives me undefined values.

Are the docs out of date ?

[Log] resolveLocalFileSystemURI is deprecated. Please call resolveLocalFileSystemURL instead. (console-via-logger.js, line 173)
[Log] readFile is now deprecated as of v0.1.4-alpha, use readAsText instead (console-via-logger.js, line 173)

#2

In the latest version of ngCordova if you use readFile you will be redirected to readAsText. The log is just a warning to change your code.


#3

Thanks, I figured it out by going through the source. Should have done that sooner! :smile: