I am building a Cordova app for android, made up of a (large) number of files. Most of them have intenal links to pdf files such as this one:
<a class="download " target="_self" href="../res/DOC140416-1.pdf" download="DOC140416-1.pdf"><span>DOC140416-1.pdf</span></a>"
To access them from the app, I downloaded the file-opener2 plugin from GitHub. It installed nicely in the plugin folder in the newly created directory: cordova-plugin-file-opener2
I then found the following snipet which I pasted in the index.js
cordova.plugins.fileOpener2.open(
filePath,
fileMIMEType,
{
error : function(){ },
success : function(){ }
}
);
And finally I added
<plugin name="FileOpener" value="com.phonegap.plugins.fileopener.FileOpener"/>
to the config.xml.
As most of you can probably tell (stop laughin'!), tapping on the links fails miserably (though working well of vourse on my pc, since the borwsers are fitted for pdf files).
Can I get some help from you guys? Many thanks!