[TIMOB-23393] Windows: Ti.Platform.ostype always returns same value as Ti.Platform.architecture
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-05-20T13:48:29.000+0000 |
Affected Version/s | Release 5.3.0 |
Fix Version/s | Release 5.4.0 |
Components | Windows |
Labels | Analytics, qe-5.3.0, qe-5.4.0 |
Reporter | Eric Merriman |
Assignee | Christopher Williams |
Created | 2016-05-17T17:19:23.000+0000 |
Updated | 2016-07-07T19:17:57.000+0000 |
Description
Description:
The analytics payloads produced by Windows phones lists ostype as "arm". The osarch is also "arm". For comparison:
iOS:
ostype:"64bit"
osarch:"arm64"
Android:
ostype: "32bit"
osarch:"ARMv7 Processor rev 0 (v7l)"
Windows:
ostype: "arm"
osarch: "arm"
Steps to reproduce:
1) Install a titanium project on a windows phone device
2) Launch the app
3) Use either - a) point device to staging via DNS setting, check logs. b) Use get last event api c) If you have backend access, check the raw event on AWS.
4) Examine any of the standard event types.
Result:
The ostype field has "arm"
Expected Result:
The ostype field should not be redundant, and should reflect information about the OS type
Comments
JSON Source
https://github.com/appcelerator/titanium_mobile_windows/pull/702 Ti.Platform.ostype no longer just returns the same value as Ti.Platform.architecture. They both use GetNativeSystemInfo under the hood. ostype should be either "32bit", "64bit" or "unknown". architecture should be one of: x86, x64, ia64, ARM, or unknown.
Verified as fixed, Ti.Platform.ostype for the windows platform now returns an appropriate value, that isn't the same as Ti.Platform.architecture
Tested On: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Ti SDK: 5.4.0.v20160705213725 Appc Studio: 4.7.0.201606220541 Appc NPM: 4.2.7-2 App CLI: 5.4.0-26 Xcode 7.3 Node v4.2.6 *Closing ticket.*