getInfo("model") returns wrong name on iPhone4 with iOS5

When I run the Corona simulator, getInfo(“model”) returns ‘iPhone4’. However, when I run it on my iPhone4 with iOS5, it returns ‘iPhone’.

Am I doing something wrong or is this a known issue? [import]uid: 41809 topic_id: 17097 reply_id: 317097[/import]

That is also the fact with the xCode simulator. It is not about iOS5, it did so even in the earlier versions, cannot confirm about the return on the device with earlier OS though.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 17097 reply_id: 64260[/import]

Infact Apple has disallowed getting the ID’s on iOS5, I am not sure how that will affect existing code.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 17097 reply_id: 64262[/import]

I wanted to get the device name so I can scale text and images accordingly.

What other strategy should I use? [import]uid: 41809 topic_id: 17097 reply_id: 64266[/import]

determine the device by the contentWidth and contentHeight of the display.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 17097 reply_id: 64267[/import]

Thanks, JayantV. That’s what I was thinking even though it seems a little kludegy. [import]uid: 41809 topic_id: 17097 reply_id: 64270[/import]