[TIMOB-23399] Analytics: Implement nettype property for Windows platform
| GitHub Issue | n/a | 
|---|---|
| Type | Improvement | 
| Priority | None | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2016-06-08T17:37:43.000+0000 | 
| Affected Version/s | n/a | 
| Fix Version/s | Release 6.0.0 | 
| Components | Windows | 
| Labels | qe-5.3.0 | 
| Reporter | Harry Bryant | 
| Assignee | Gary Mathews | 
| Created | 2016-05-17T17:41:26.000+0000 | 
| Updated | 2016-09-05T15:46:42.000+0000 | 
Description
	When comparing the payloads for the Windows platform to Android, it was found that 
nettype was returning as nettype: "UNKNOWN". This also occurs when evaluating the data returned from Ti.Network.networkTypeName. 
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) Alternatively, includeTi.Network.networkTypeName in a log statement in the app.js, and build to a Windows phone device. 
5) Examine any of the standard event types.
Actual Result
nettype returns as "UNKNOWN" for Windows Device.
Expected Result
nettype should return an appropriate value, consistent with the other platforms.
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/739
Verified using: OS: Microsoft Windows 10 Pro 10.0.14393 Appc core: 6.0.0-38 Appc NPM: 4.2.8-6 Ti SDK: 6.0.0.v20160904203840 Ti.Network.networkTypeName now returns the correct value depending on the devices current network Closing ticket