[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531137#comment-14531137 ]
Ralph Hardy commented on CB-3325: --------------------------------- Hi Kevin, I’m using Ionic’s platform object to show the device info and it is showing isAndroid to be true. I’ve injected the $cordovaAppInBrowser module into my controller and then call it with: $cordovaAppInBrowser.open(…); // with the _system target. This is what the ngCordova document advises, see: http://ngcordova.com/docs/plugins/inAppBrowser/ However, NOTHING happens. My debug shows the URI is: blob:file%3A///8100/b1a1931e-a592-489e-84cd-ceb327e363ff and while it looks weird, it works perfectly fine for rendering images and PDFs on an iOS device. FYI, that URI is what I get after I retrieve an attachment from CouchDB then ask for it to return a trusted link to it: var blobURL = URL.createObjectURL(blobObj); if (appConfig.devMode) {console.log('Retrieved the URL:', blobURL);} $timeout ( function () { deferred.resolve($sce.trustAsResourceUrl(blobURL) ); },1200 ); The point is, though, that this URI works fine everywhere BUT for the Android inAppBrowswer :( Any other ideas would be REALLY appreciated :) Thanks, Ralph > Add PDF support to the InAppBrowser within Android > -------------------------------------------------- > > Key: CB-3325 > URL: https://issues.apache.org/jira/browse/CB-3325 > Project: Apache Cordova > Issue Type: Improvement > Components: Android > Affects Versions: 2.6.0 > Environment: Windows 7, Eclipse v3.8.0 > Reporter: Kelvin Dart > Priority: Minor > Fix For: Master > > > When I was making use of the ChildBrowser for both iOS and Android, I wrote > an extra bit of code to enable PDF support for the Android version (which > started up the installed PDF application if there was one). > I also understand that the Android WebView doesn't natively support viewing a > PDF document which is why it doesn't fully behave like the iOS version - but > is it possible to either: 1) write similar code which, if the opened URL is > directed to a PDF file, then it opens the native PDF reader or; 2) integrate > a PDF view into the InAppBrowser which opens a PDF document much like > InAppBrowser does on iOS. > (1) is what I currently have working at the moment and would probably be > easiest. (2) is what would be very good but I expect more difficult to > achieve. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org