appcelerator/titanium_mobile — pull request #5234 by iwhitfield (2014-01-16 06:48:37+00:00)
Title: [TIMOB-15947] Windows devices now report their platform as 'windows'

This PR should modify the SDK to send "windows" platform for Windows Phone/Tablet devices, whilst keeping "mobileweb" for any other Mobile Web devices.

Uses User Agent to check for the Windows variants, and validates against a missing http(s) to check that it's from within a hybrid app and not a browser on a Windows device.