Reputation: 247
My ionic app uses the Cordova plugin inAppBrowser. I’ve updated my ionic & cordova environment; and updated cordova-plugin-inappbrowser to version 1.7.2
Now this line of code does nothing (it worked 6 months ago):
var targetPath = "file:///storage/emulated/0/Android/data/myapp/files/myDir/fds/30510L109.pdf";
$cordovaInAppBrowser.open(targetPath, “_system”, { location: ‘no’, clearcache: ‘yes’, toolbar: ‘yes’, closebuttoncaption: $translate.instant(“SCAN.BACK”), EnableViewPortScale:‘yes’ });
I don’t get any error in the console (when I run the app using: ionic cordova run android -lc), and nothing happens… How can I know what’s wrong?
Upvotes: 0
Views: 1573
Reputation: 11935
As per the OP's comment, the issue is with the version of Cordova file opener2 plugin. Version 2.0.19 seems to be working fine but not 2.0.20
The working sample of Cordova file operations is available in this git repo This should help resolving most of your file operations related issues in Cordova app. Hope is helps.
Upvotes: 1