[TIMOB-25462] Android: webview userAgent doesn't change
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-13T23:54:39.000+0000 |
Affected Version/s | Release 6.2.2 |
Fix Version/s | Release 7.0.0 |
Components | Android |
Labels | n/a |
Reporter | Aminul Islam |
Assignee | Gary Mathews |
Created | 2017-10-31T18:23:57.000+0000 |
Updated | 2018-08-21T13:13:59.000+0000 |
Description
Hi,
I've got a problem with webview on Androids when setting the userAgent. I'm using SDK 6.2.2GA
When I set the userAgent it doesn't change. I've tried this in a Samsung S7 (android 7)and HTC M8 (android 6). However, it works on an iPhone.
Here is some example code:
var webview = Titanium.UI.createWebView({url:'https://www.whoishostingthis.com/tools/user-agent/',userAgent:'IngelbyApp'});
$.index.add(webview);
$.index.open();
Environment :
Operating System
Name = Mac OS X
Version = 10.13
Architecture = 64bit
# CPUs = 4
Memory = 8589934592
Node.js
Node.js Version = 6.10.3
npm Version = 3.10.10
Titanium CLI
CLI Version = 5.0.14
Titanium SDK
SDK Version = 6.2.2.GA
master: https://github.com/appcelerator/titanium_mobile/pull/9576
FR Passed. Waiting for merge to get enabled.
PR merged.
Changes are seen in SDK 7.0.0.v20171114202841.