Wrong resolution on iPhone 6S

Hi,

 I’ve problem with developer build on real device iPhone 6s. On Corona Simulator screen resolution is ok (750x1334) but on real device is wrong (640x960). How can I fix it ? Even if I force resolution in config.lua I’m getting wrong resolution on iPhone 6s as well :frowning:

Best

Jarek

This is actually a rather simple problem that’s a bit complex to explain.

When the iPhone 5 came out, Apple needed a way to know if the app supported “Tall mode”. They did this by detecting the presence of a file named Default-568h@2x.png that was 640x1136 in size. Earlier versions of iOS just looked for the file. Later on, they needed some data in the plist file since they were supporting more devices. In fact, iPhone 6’s will not provide you 750x1334 with out the presence of a file named Default-667h@2x.png and the proper entries in your build.settings to populate the plist correctly.  This is all documented in our guides:  https://docs.coronalabs.com/guide/distribution/launchFile/index.html#static-method

This method is hyper sensitive to mistakes. You have to include portrait versions for phones even if it’s a landscape only app.

I don’t know what version of Corona SDK you’re using, but I suspect it’s the latest public build. This version still supports iOS 6 and 7 which means you should use this static file method for managing your launch images. However if you update to a recent daily build, something after 2017.3037, then you can use a different, much simplified method that doesn’t include these size specific files. See: 

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#ios-launch-screen

Rob

Thank you very much for fast reply! I’m using latest daily build, so the much simplified method is working fine. Once again thanks!

This is actually a rather simple problem that’s a bit complex to explain.

When the iPhone 5 came out, Apple needed a way to know if the app supported “Tall mode”. They did this by detecting the presence of a file named Default-568h@2x.png that was 640x1136 in size. Earlier versions of iOS just looked for the file. Later on, they needed some data in the plist file since they were supporting more devices. In fact, iPhone 6’s will not provide you 750x1334 with out the presence of a file named Default-667h@2x.png and the proper entries in your build.settings to populate the plist correctly.  This is all documented in our guides:  https://docs.coronalabs.com/guide/distribution/launchFile/index.html#static-method

This method is hyper sensitive to mistakes. You have to include portrait versions for phones even if it’s a landscape only app.

I don’t know what version of Corona SDK you’re using, but I suspect it’s the latest public build. This version still supports iOS 6 and 7 which means you should use this static file method for managing your launch images. However if you update to a recent daily build, something after 2017.3037, then you can use a different, much simplified method that doesn’t include these size specific files. See: 

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#ios-launch-screen

Rob

Thank you very much for fast reply! I’m using latest daily build, so the much simplified method is working fine. Once again thanks!