[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15081915#comment-15081915 ] Mike Hartington commented on CB-3325: - [~ralphbha...@icloud.com] Is this happening in a vanilla cordova project? If not, please open an issue on the NgCordova repo as it could be an issue with our wrapper. https://github.com/driftyco/ng-cordova > 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
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ 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
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14529327#comment-14529327 ] Kelvin Dart commented on CB-3325: - Hi Ralph, If you change the target in `window.open(...)` to `_system`, Android will correctly route to the active PDF viewer application installed. Thus: window.open(pdfUrl, '_system'); You can use `device.platform` to detect whether your app is running on Android using cordova-plugin-device from npm. Android's webview doesn't natively support PDF rendering like iOS's does. Hope that helps. > 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
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14529315#comment-14529315 ] Ralph Hardy commented on CB-3325: - My client is not happy that the app we are developing is going to work differently on Android v. iOS in terms of rendering PDFs that will be extracted from a CouchDB. I also feel the frustration of having to find a workaround. So, please Apache Cordova Development Team, could you "up" the priority of this need and, in the meantime, provide documentation of a JS workaround in the meantime? Respectfully requested :) 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
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176881#comment-14176881 ] Andrew Grieve commented on CB-3325: --- You might try: http://mozilla.github.io/pdf.js > 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
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14175393#comment-14175393 ] Chris Emerson commented on CB-3325: --- Sadly not that I'm aware of. Somehow it is still impossible to freaking show a PDF in any kind of Android webview. Insane! > 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
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14175370#comment-14175370 ] Chif Dagrif commented on CB-3325: - I too am looking for a way to display a pdf on the Android that is base64 encoded. The GoogleDocs, nor direct download are an option for my either. Has anyone resolved this? > 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
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870737#comment-13870737 ] Tiziano Cialfi commented on CB-3325: Hello, I'm Tiziano, developer of an italian software house that is developing an app for a major international broker. We chose Cordova since it is the best tool to take advantage of cross-platform. Are you planning to implement displaying pdfs in inappbrowser? Otherwise, can you give us some indication on how to solve the problem? For weeks we seek out communities and forums and found no answer. Pdf that we try to show is provided by a web-service in base64 format, so neither GoogleDocs, nor direct download of the file on the device do the job. Any ideas? Thanks for your kind attention. Regards, Tiziano > 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 >Assignee: Joe Bowser >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.1.5#6160)
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869435#comment-13869435 ] Chris Emerson commented on CB-3325: --- Sadly no progress on Android/PDF front AFAIK. My current fallback is to export all my PDFs into PNGs and lay them out in HTML code. Super lame I know but all other PDF fallbacks on Android are too awkward or insecure IMO. Keep and eye out for progress or ideas on this front though - I know lots of folks would be interested if/when something comes up. On Monday, January 13, 2014 6:03 AM, Nathan Hazout (JIRA) wrote: > 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 >Assignee: Joe Bowser >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.1.5#6160)
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869411#comment-13869411 ] Nathan Hazout commented on CB-3325: --- Was this solved in any Cordova version? Or plans to do so? Workarounds? I am opening an InAppBrowser (remote URL), which contains a link to a PDF file. The link does not open. > 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 >Assignee: Joe Bowser >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.1.5#6160)
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736243#comment-13736243 ] srinivasan soundararajan commented on CB-3325: -- Hi, Is the issue #1 solved? Regards, Srinivasan > 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 >Assignee: Joe Bowser >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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13648507#comment-13648507 ] Kelvin Dart commented on CB-3325: - Hi Andrew, OK great - thank you for letting me know :) Kind regards. > 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 >Assignee: Joe Bowser >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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3325) Add PDF support to the InAppBrowser within Android
[ https://issues.apache.org/jira/browse/CB-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13648456#comment-13648456 ] Andrew Grieve commented on CB-3325: --- Hi Kelvin, Thanks for pointing this out. I'm afraid this might be one of those "patches welcome" moments though :). PDFs within IAB are pretty low priority, so it's unlikely we'll get to it any time soon - but if you've already got #1 working, then I think it's a good idea to put it in :) > 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 >Assignee: Joe Bowser >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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira