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

iOS: Disable ATS in builtin KitchenSink by default

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.2.0
    • Component/s: iOS
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      2015 Sprint 22 SDK

      Description

      Currently we need to disable iOS9 App Transport Security (ATS) in the builtin KitchenSink (titanium_mobile/demos/KitchenSink) whenever we want to test any ticket related to webview, httpclient, etc.

      As we disable ATS in our SDK as well, we should change this setting in the Titanium.plist of the Xcode project.

      Example:

      var win = Ti.UI.createWindow();
      win.add(Ti.UI.createImageView({image: "http://dummyimage.com/600x400/000/fff"}));
      win.open();
      

      Expected behavior:
      The image loads.

      Actual behavior:
      An ATS error is thrown:

      App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
      

      Solution:

          <key>NSAppTransportSecurity</key>
          <dict>
              <key>NSAllowsArbitraryLoads</key>
              <true/>
          </dict>
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Chee Kiat Ng (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code