Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23624] iOS: Ti.userAgent ignored for Ti.Network.HTTPClient operations

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-07-12T12:40:22.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 6.0.0
ComponentsiOS
Labelsparity
ReporterChristopher Williams
AssigneeChee Kiat Ng
Created2016-07-11T19:41:51.000+0000
Updated2016-07-12T12:40:22.000+0000

Description

According to the documentation, we should be able to set the user agent string used by Titanium: http://docs.appcelerator.com/platform/latest/#!/api/Titanium-property-userAgent iOS allows you to set the property value, but effectively ignores it. We use our own hard-coded value. We should likely continue to use our own value internally for things like analytics/geolocation/etc, and use the user-supplied one for Ti.network.HTTPClient operations. Give that usage, we may want to even make Ti.userAgent read-only and have a userAgent property on Ti.Network.HTTPClient.

Comments

  1. Hans Knöchel 2016-07-11

    Does Android use the value defined in Ti.userAgent?
  2. Hans Knöchel 2016-07-11

  3. Hans Knöchel 2016-07-12

    Fixed as part of TIMOB-23623!

JSON Source