How can I tell if the device is iPhone 3 or 4?

Can I set up [lua]system.getInfo(“model”)[/lua] to show the iPhone model? Or is there another way to do it? [import]uid: 102175 topic_id: 29562 reply_id: 329562[/import]

“model” is just going to return iPhone, iPad, Android, etc. You can use “architectureInfo” to get something more useful (the id strings), however. (The list on that page is by no means complete; if there are any models unaccounted for you can find them on google, however.)

[import]uid: 41884 topic_id: 29562 reply_id: 118686[/import]