As I understand , we can use Ti.Platform.osname to get the os name on which the application is working . When we develop and run it on a browser , we get the osname as mobileweb and as android when we run it natively .
However I want to knwo whether the application is working on PC browser or Android device browser . Is there any way I can get this info in my code ?
You can achieve it by detecting the screen size (Width or height) Ti.Platform.displayCaps.platformwidth; and Ti.Platform.displayCaps.platformheight; certainly the screen size of the PC Monitor is higher than the maximum android tablet or any device.
Think you can help? Login to answer this question!