What do I get as feedback for system.getInfo( model) running on iPod

What is the exact output for the following code

system.getInfo(model)

running on an iPod?

I don’t have one and can’t test it.

Can anyone please help me with this info?

I suggest it is “iPod”, but I want to know for sure :wink:

Thank you!

Best,

Daniela

Why not print out the value returned and look at the device console to see what was output.  If you don’t know how to view the device console on your device, please see this tutorial:  http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

It will be faster than waiting for someone with and iPod to respond.

Rob

;) The problem is that Daniela doesn’t have an actual device…

@Daniela

I tested on an iPod Touch 4th and 5th generation, and both return “iPod touch” as a result.

Thank you Rob and ingemar for your fast reply and help!

Much appreciated! :slight_smile:

Best,

Daniela

One more question about the different models… the 5th generation has another screen resolution compared to the 4th generation, right? Like the iPhone4 compared to an iPhone5, right?

Is there a way to figure out which device (iPod) model the app is on?

I want to make sure each iPod model is using the right display size graphics.

Thx!

Daniela

You can use display.pixelHeight and display.pixelWidth to get the physical dimensions of the screen.

For iPhone 5 / iPod Touch 5th generation this assumes that you have Default-568h@2x.png present in the root directory, otherwise it will default to 960x480 mode which is the same as iPhone/iPod Touch 4th gen.

ah… of course :slight_smile: things can be so easy. Thank you for pointing this out.

Best,

Daniela

Why not print out the value returned and look at the device console to see what was output.  If you don’t know how to view the device console on your device, please see this tutorial:  http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

It will be faster than waiting for someone with and iPod to respond.

Rob

;) The problem is that Daniela doesn’t have an actual device…

@Daniela

I tested on an iPod Touch 4th and 5th generation, and both return “iPod touch” as a result.

Thank you Rob and ingemar for your fast reply and help!

Much appreciated! :slight_smile:

Best,

Daniela

One more question about the different models… the 5th generation has another screen resolution compared to the 4th generation, right? Like the iPhone4 compared to an iPhone5, right?

Is there a way to figure out which device (iPod) model the app is on?

I want to make sure each iPod model is using the right display size graphics.

Thx!

Daniela

You can use display.pixelHeight and display.pixelWidth to get the physical dimensions of the screen.

For iPhone 5 / iPod Touch 5th generation this assumes that you have Default-568h@2x.png present in the root directory, otherwise it will default to 960x480 mode which is the same as iPhone/iPod Touch 4th gen.

ah… of course :slight_smile: things can be so easy. Thank you for pointing this out.

Best,

Daniela