Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23393] Windows: Ti.Platform.ostype always returns same value as Ti.Platform.architecture

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-05-20T13:48:29.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.4.0
ComponentsWindows
LabelsAnalytics, qe-5.3.0, qe-5.4.0
ReporterEric Merriman
AssigneeChristopher Williams
Created2016-05-17T17:19:23.000+0000
Updated2016-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

  1. Christopher Williams 2016-05-18

    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.
  2. Harry Bryant 2016-07-07

    Verified as fixed, Ti.Platform.ostype for the windows platform now returns an appropriate value, that isn't the same as Ti.Platform.architecture
       "data": {
       		"tz": -420,
       		"sdkver": "ti.5.4.0",
       		"platform": "windows",
       		"osver": "10.0.10586.420",
       		"ostype": "32bit",
       		"oscpu": 4,
       		"osarch": "ARM",
       		"os": "windowsphone",
       
    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.*

JSON Source