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

Webview http redirects not working as on 7.5.1


    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 8.0.0
    • Fix Version/s: Release 8.2.0
    • Component/s: iOS
    • Environment:

      Ti SDK 8.0.0.GA

    • Story Points:
    • Sprint:
      2019 Sprint 17, 2019 Sprint 18


      We have an integration with Plaid (https://plaid.com/) where we use a web view and capture redirects on the site.

      From their docs:
      “Communication between the WebView and your app is handled by HTTP redirects rather than client-side JavaScript callbacks. These redirects should be intercepted by your app.”

      Working code:
      $.bankPlaidLinkWebView.addEventListener('beforeload', function(_e) {
      if (_e.url.indexOf(schemaOrString) > -1)

      { $.bankPlaidLinkWebView.stopLoading(); handleCommand(_e.url); }


      beforeload triggers with an url the same as the one I sent. After that we should listen for an url that has "plaidlink" as the scheme.

      From the docs:
      "All redirect URLs have the scheme plaidlink. The event type is communicated via the URL host and data is passed via the querystring. There are two supported events, connected and exit, which are documented below."

      These redirects are never triggered and it always trigger my original url.

      This is working on a published app but has stopped working since SDK 8.0.0.GA, I guess it’s related to the switch to WKWebview.

      Checking TiUIWebView.m I found that changing line #995 from @"url" : webView.URL.absoluteString to:
      @"url" : navigationAction.request.URL fixes the problem.

      Don't know if you should fix it here or on the newly introduced 'redirect' event. This was working before 8.0 and works if I change the mentioned line.




            • Assignee:
              vijaysingh Vijay Singh
              inzori Fabian Martinez
              Jan Vennemann
              Keerthi Mahalingam (Inactive)
            • Watchers:
              7 Start watching this issue


              • Created:

                Backbone Issue Sync

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

                  Git Integration