I am building an Ionic2 app and I have successfully managed to create a local file using the 'ngCordova' plugin.
However, the function writeFile(..) listed on: http://ngcordova.com/docs/plugins/file/ doesn't seem to be supported by the same plugin which I used to create the same file.
This is the piece of code that is not working.
File.writeFile(this.getFilePath(), 'feedback.txt', data, true);
where File.writeFile is highligted with a message 'Unresolved function or method writeFile'.
When I build my app. the error that appears is:
Error TS2339: Property 'writeFile' does not exist on type 'typeOf File'
Any ideas if the Cordova plugin no longer supports this function or if the function is succeeded by another one, which I can't seem to be able to find?
Thank you!