I have written an app that is designed to download an .apk and install it. while the download seems to execute, the installation errors out with a parse error.
If I download the .apk manually from my repository in to the devices Download directory, I can install it without any problems.
The relevant parts of the code are at an earlier stack question I asked.
How can the same file not install when downloaded programmatically?
[SOLVED] changed download location from
var toLocation = "cdvfile://localhost/persistent/" + file;
to
var toLocation = cordova.file.externalDataDirectory + file;