This should be var platformName = Titanium.Platform.osname;
if (platformName != 'iphone' || platformName!= 'android')
cause we will be having more platforms added on in the future.