Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7407] Android: Set a user-agent for a webview

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-04-29T18:21:51.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.1.3
Fix Version/s2013 Sprint 09
ComponentsAndroid
Labelsn/a
ReporterMauro Parra-Miranda
AssigneePing Wang
Created2012-01-25T15:35:46.000+0000
Updated2017-03-24T18:17:31.000+0000

Description

PROBLEM DESCRIPTION

Some people are interested in being able to set the user-agent for the webview, just like the way we do with the HTTPClient. The usage will be similar to the HTTPClient's modification of the user-agent, but will allow more developers to connect webviews to special content, like twitter that recently doesn't allow you to create a webview of a timeline from our implementation (looks like they identify the agent as mobile, but since doesn't know which one is, it just breaks).

MORE INFO

I have seen this request often in the community.

Comments

  1. Ping Wang 2013-04-29

    This has been already implemented on Android. See the doc http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.WebView-method-setUserAgent Resolve the ticket as Invalid.
  2. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source