Detect iPad or iPhone or Android in Corona SDK?
It is very simple to get which device are you running the app in corona SDK.
Take a look at the code snippet.
local device = system.getInfo( "model" )
if (device == "iPad") then
{
print ("iPad")
}
else
{
print ("iPhone or Android");
}
end
Link to this post!