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

Android: WebView does not load when Custom Useragent is set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: None
    • Resolution: Duplicate
    • Affects Version/s: Release 7.3.0, Release 7.3.1
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None
    • Environment:
    • Story Points:
      0
    • Sprint:
      2016 Sprint 17 SDK

      Description

      Steps to reproduce:

      1.Use the code below in app.js

      var win = Ti.UI.createWindow({
          backgroundColor : 'black',
          layout : 'vertical'
      });
       
      var webview = Titanium.UI.createWebView({url:'https://www.appcelerator.com'});
      webview.setUserAgent('test');
       
      webview.addEventListener('beforeload', function(e){
      	Ti.API.info("beforeload = e.url=" + e.url);
      	
      	
      	
      });
      webview.addEventListener('load', function(e){
      	Ti.API.info("load = e.url=" + e.url);
      	Ti.API.info("userAgent = agent=" + e.userAgent);
       
      	
      });
       
      win.add(webview);
       
      win.open(); 
      

      Actual results:

      1.The web view does not load

      Expected results:

      1.Web VIiew should load successfully

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kmahalingam Keerthi Mahalingam
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code