letterBox app having different resolution on actual device than in the simulator (iPhone 5)

I’ve noticed that my game uses a different resolution when run on an actual iPhone 5.

On the actual device there are 2 black squares on the sides, wherein the simulator it scales correctly to the full width of the device (I use the landscape orientation)

I printed some properties when in the device and in the simulator with the following line:

print(display.actualContentWidth, display.actualContentHeight, display.pixelWidth, display.pixelHeight)

When doing this on the actual iPhone 5 I get: “240    160    640    960”

While in the iPhone 5 simulator I get: “284    160    640    1136”

I know this have been working correctly some versions before, I’ll do some testing this afternoon and try to find which version it went wrong.

Ps. here’s the config.lua

application={ content={ width = 160, height = 240, xAlign = "left", yAlign = "top", scale = 'letterbox', fps = 60 }, license={ google={ key="blabla" } } }

I went pretty far back in daily builds, but this problem still occurs.

I think it’s something else causing this, maybe the OS version as I recently upgraded this one to 9.2.1. Or maybe something in my code.

I’ll let it know when im aware of what’s causing the problem, do you guys have any ideas where to look?

I cannot find the correct info at the moment but i remember that the iphone5 resolution is enabled only if you add the correct launch image in your project.
I believe you might find the necessary infos either in the docs or here in the forum.

You need to include a PNG image file that is 640px wide and 1136px tall called Default-568h@2x.png. It must be in the same folder as your main.lua.

Rob

I actually have this Default-568h@2x.png in my main folder, so that’s not the cause I think.

Hmmm but maybe it’s a lead, i’ll go check if it actually is included in the .ipa

–Update: 

It is also included in the .ipa contents

I went pretty far back in daily builds, but this problem still occurs.

I think it’s something else causing this, maybe the OS version as I recently upgraded this one to 9.2.1. Or maybe something in my code.

I’ll let it know when im aware of what’s causing the problem, do you guys have any ideas where to look?

I cannot find the correct info at the moment but i remember that the iphone5 resolution is enabled only if you add the correct launch image in your project.
I believe you might find the necessary infos either in the docs or here in the forum.

You need to include a PNG image file that is 640px wide and 1136px tall called Default-568h@2x.png. It must be in the same folder as your main.lua.

Rob

I actually have this Default-568h@2x.png in my main folder, so that’s not the cause I think.

Hmmm but maybe it’s a lead, i’ll go check if it actually is included in the .ipa

–Update: 

It is also included in the .ipa contents