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

Android: API 16 breaks remote web services from local files

    Details

      Description

      Problem description

      Starting in API level 16 (Jellybean and above), Android is by default more restrictive in the web settings. See this link:

      http://developer.android.com/reference/android/webkit/WebSettings.html#setAllowUniversalAccessFromFileURLs(boolean)

      It prevents XHR requests from being made from local files. Titanium must allow setting this flag in Web View settings, or lots of WebView functionality will be wiped out.

      Please enable setting this flag for Android web views ASAP, thanks. Obviously, this is an issue only when setting targetSdkVersion="16" or higher.

      Additional information

      http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                mokesmokes Mark Mokryn
              • Watchers:
                9 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