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

iOS: Loading local pdf in a webview throws encoding error in the console

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 2.1.3, Release 3.1.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      iOS 5.1 and Ti SDK 2.1.3GA and CI builds ( 3.0.x, 3.1.x and 2.1.X )

      Description

      Run the below code snippet with a sample pdf file in resources folder. Error is seen in the console, however pdf is displayed properly in the webview.

      var mWin=Ti.UI.createWindow();
       
      var mWebView=Ti.UI.createWebView({
      });
       
      mWebView.url='1.pdf';
      mWin.add(mWebView);
       
      mWin.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blainhamon Blain Hamon
                Reporter:
                anagesh Anirudh Nagesh
                Reviewer:
                Sabil Rahim
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code