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
Duplicate of TIMOB-26325, fixed in 7.3.1. Workaround: Set the
userAgent
property on creation of the web-view.