Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2112] Issue with .NET Browser Config File for WebView Control

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-05T23:50:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsiphone
ReporterJack
AssigneeShak Hossain
Created2013-01-10T19:39:17.000+0000
Updated2016-03-08T07:41:05.000+0000

Description

I have an ASP.NET website and it is not properly rendered in the WebView Control due to the wrong browser config file. I believe it uses a default config in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\Browsers\Default.browser. I am trying to render it to WebView on IOS simulator. I was expecting that safari browser will work. However, is seems that the name of the WedView browser is Mobile Mozilla Compatible. So, it cannot be mapped correctly. The website displays correctly on iPAD and iPhone in Safari browser. The only problem is with Titanium WebView control. You can try www.reachlite.com.

Comments

  1. Pedro Enrique 2013-01-25

    What exactly are you seeing and what are you expecting? Can you provide some code and screenshots?
  2. Mostafizur Rahman 2013-12-08

    Hello, We have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. We tested this issue the test code below. It displays similar to displaying content on web browser. Not sure if you are experiencing the same in your app. If so, please send us a test case so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it.

    Test Environment

    OS: MAC OS X 10.8.5 Ti SDK: 3.2.0.x Ti CLI: 3.3.0 IOS simulator 7.0

    Test Code

        
       var win = Ti.UI.createWindow({
       	backgroundColor : '#fff',
       	exitOnClose : true,
       	fullscreen : false,
       	layout : 'vertical',
       	title : 'Color Demo'
       });
       
       var aWebView = Ti.UI.createWebView({
       	url : 'http://www.reachlite.com'
       });
       aWebView.addEventListener('load', function(e) {
       	Ti.API.info('webview loaded: ' + e.url);
       });
       
       win.add(aWebView);
       
       win.open();
       

    Step to reproduces

    Create a new project

    Paste test code in app.js

    Now run on iOS simulator

    Test Result

    Website will be loaded perfectly in Webview. Thanks

JSON Source