Error in opening pdf in adobe reader

Hi,

I am creating an Android app which downloads the pdf and the user can open it in adobe reader or anyother app installed on the device.

Currently when I click on the icon, the OS asks me to open the file with adobe reader or anyother app. When I select any app, I get an error that “path is not correct”.

When I am downloading the file, I am giving this cordova.file.dataDirectory + filename. The file even exists when I use ng cordova’s $cordovaFile.checkFile but it is somehow not available to Adobe Reader.

Can anybody help?

Got this working. instead of using cordova.file.dataDirectory, I am using a shared folder to download the files as the cordova.file paths are private and not accessible by adobe reader etc.

Download the file in a common shared folder and then give that path.