[TIMOB-23624] iOS: Ti.userAgent ignored for Ti.Network.HTTPClient operations
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-07-12T12:40:22.000+0000 |
| Affected Version/s | Release 5.4.0 |
| Fix Version/s | Release 6.0.0 |
| Components | iOS |
| Labels | parity |
| Reporter | Christopher Williams |
| Assignee | Chee Kiat Ng |
| Created | 2016-07-11T19:41:51.000+0000 |
| Updated | 2016-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.
Does Android use the value defined in Ti.userAgent?
Fixed as part of TIMOB-23623!