Created
October 24, 2017 13:20
-
-
Save zeqk/1f6b4912ee76deb860124a63598113d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inAppBrowser | |
| http://ngcordova.com/docs/plugins/inAppBrowser/ | |
| Force download our open file Pdf: | |
| var options = { | |
| location: 'yes', | |
| clearcache: 'yes' | |
| }; | |
| $cordovaInAppBrowser.open('http://dlucca-abrhsp.tempspace.no/uploads/materials/07/ff/07ff6180309811e68542739bcce0a3a9.pdf', '_system', options) | |
| .then(function (event) { | |
| alert("success"); | |
| }) | |
| .catch(function (event) { | |
| alert("error"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment