Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24272

Universal Windows App (UWP) - Ability to display PDF in webview

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Not Our Bug
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Appc CLI: 6.1.0
      SDK: 6.0.1.GA
      ti CLI: 5.0.11
      node: 4.6.0
      OS: Windows 10

    • Story Points:
      5
    • Sprint:
      2017 Sprint 04 SDK

      Description

      Problem Description:

      When creating a WebView whose url property points to a PDF resource (like http://edis.ifas.ufl.edu/pdffiles/fe/fe57700.pdf or http://bdrconsultants.com/goalsetting.pdf ) the WebView is not even shown in the UI of the app, while, for instance, in iOS it'll display a WebView and the PDF within it.

      Steps to Reproduce:

      1. Create a Alloy project and use the attached index.xml, index.tss and index.js files.
      2. Run the app on Windows Emulator
      2. WebView will not load upon launching
      3. Tried with Titanium classic app and it does not work there as well. Please find the sample

      var webview = Titanium.UI.createWebView({url:'http://edis.ifas.ufl.edu/pdffiles/fe/fe57700.pdf'});
          var window = Titanium.UI.createWindow();
          window.add(webview);
          window.open({modal:true});
      

      Current Behavior:

      1. It works on iOS app and shows the pdf inside the WebView and works as expected.
      2. On windows app it does not show anything.

      Expected Result:

      Upon launching, WebView should open the pdf content for windows app similar to iOS.

      Note: I tried with classic app and sample code is attached above and it does not work with that as well.

        Attachments

        1. index.js
          0.4 kB
        2. index.tss
          0.3 kB
        3. index.xml
          0.1 kB

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                nmishra Neeraj Mishra
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10382
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code