Titanium : Device Check Using Ti Platform

 

  var osname = Ti.Platform.osname;

 

  if (osname ===  'android') { 

  }

else if (osname ===  'ipad') {

 }

else if (osname == = 'iphone') {

 }

else

{

 

}