black bars on regular build with iphone 7+

hello,

I was used to code and test my app with the 2017.2975 build.

On my iphone 7+, my appli is 100% full screen (it’s what i need) :

jqtHL0.png

Today, i try 3 others builds, and even with the last 2017.3068 build, with EXACTLY the same code, i tried to build, and on my iphone 7+ the result is that i have 2 black bars on top and bottom :

hVeT86.png

Theses 2 pics are screenshot on my iphone.

I don’t understand why it appends.

Could you help me please ?

My config file is “standard” and the same than everybody i think :

local aspectRatio = display.pixelHeight / display.pixelWidth
 
application = {
   content = {
      width   = aspectRatio > 1.5 and 320 or math.ceil( 480 / aspectRatio ),
      height  = aspectRatio < 1.5 and 480 or math.ceil( 320 * aspectRatio ),
      scale   = “zoomEven”, – zoomEven letterBox adaptive
      xAlign  = “left”,
      yAlign  = “top”,      
      fps = 60,
      --showRuntimeErrors = true,
      imageSuffix = {
         ["@2x"] = 1.5,
         ["@4x"] = 3.0,
      },
   },
}

Can you post your build.settings and what Default*.png files do you have in your project?

Thanks

Rob

my build.setting below.

do i have something to change or add ? thanks !

i don’t understand what you mean about “default*.png” and what are the impact of the png file (my backgroundfile ?) on theses black bars…

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { &nbsp; plugins = &nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["plugin.google.iap.v3"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; publisherId = "com.coronalabs", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supportedPlatforms = { android=true } &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp; }, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;orientation = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;-- Supported values for orientation: &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;default = "portrait", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;supported = { "portrait" }, &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;excludeFiles = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;-- Include only the necessary icon files on each platform &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;iphone = { "Icon-\*dpi.png", }, &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;-- iOS Section &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;iphone = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;plist = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MinimumOSVersion = "7.0", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UIApplicationExitsOnSuspend = false, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;UIStatusBarHidden = false, &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;UIPrerenderedIcon = true, -- set to false for "shine" overlay &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;--UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- This will allow end users to see that the app supports their language when they are browsing and see your app in the app store &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CFBundleLocalizations = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "English", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "French" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CFBundleIconFiles = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-167.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-60.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-60@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-60@3x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-72.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-72@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-76.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-76@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small@3x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-40.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-40@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-50.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-50@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSAppTransportSecurity = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSExceptionDomains = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["mywebsite.com"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSIncludesSubdomains = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSThirdPartyExceptionAllowsInsecureHTTPLoads = true &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;-- Android Section &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;android = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;usesPermissions = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"android.permission.INTERNET", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.BILLING", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.CHECK\_LICENSE", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;}, }

s

This is is a fairly long explanation but bear with me since there is a lot of history here.

Since the beginning of the iPhone and iPad family devices, Apple has allowed you to have a “startup” or “launch” screen that many used for branding, but Apple has always wanted to look like the first screen of your app to give the illusion that you’re app is starting faster. Back in the day of the iPhone 3 this launch image was called “Default.png” and was 320x480, the size of the iPhone 3/3s screen size. When the iPhone 4 came out, the screen doubled in size (Retina display) and was now 640x960. It was the same shape, so the launch image for that was called Default@2x.png. You just needed to include these in your project. The iPads added some more complexity because they supported “Landscape” oriented launch images, so now you also included a Default-landscape.png and Default-landscape@2x.png file (when the Retina iPads came out).

When Apple came out with the iPhone 5, the needed a way to programmatically know if an app supported “tall” mode, if not you got 88 pixels black bars at the top and bottom of the screen on an iPhone 5 (the iPhone 4 was a 640x960 screen, the iPhone 5 a 640x1136 screen). Older apps that didn’t support tall mode would run in iPhone 4 mode, tall mode apps would fill the extra space.

The way Apple detected this was the presence of a file named Default-568h@2x.png. It had to be 640x1136 portrait only. If you don’t have this, you fall back to 640x960 as the screen size.

Then Apple came out with the new iPhone 6 and 6 plus models which offered yet two more screen sizes that need supported (the 6s/7 and 6s/7 plus models have not changed screen sizes, so they are lumped in with the 6/6 plus for discussions). Apple needed a way to know if developers were just running older iPhone 5 apps or if they were made for the new screens. Since the new models are the same shape as the 5, there wasn’t much of a need to deal with black bars, but iPhone 5 based apps would zoom up to fill the 6 and 6 plus screens, which didn’t always look that good.  Apples solution: Default-667h@2x.png and Default-734h@3x.png files would indicate that apps were designed for those screens. To compound matters, Apple now allowed landscape versions of the Default-734h@3x.png files for the plus models.

But in doing this, there were now 10 of these Default PNG files needed in a project. The naming scheme got complex so they switched to also requiring you to list the files in your build.settings file in a block known as UILaunchImages. This is a terribly complex table that’s prone to error.

With iOS 8, Apple tried to clean up a lot of this. Corona however has provided support going back to iOS 6 until a little over a month ago and the new public build has dropped iOS 6 and 7 support. Now Apple has a very clean way to support launch images that’s down to four files and one line in your build.settings. They still support the older method.

Apple seems to also have made some changes around iOS 10 that has changed the behavior even more. Perhaps starting with iOS 10.2, they started failing submissions that did not have the required Default-568h@2x.png file or the new “Storyboard” based system. And it seems that perhaps with 10.3 the have gone back to showing the black bars in the absence of this file (I’ve not tested this, at this point I’m speculating). We use to include an all black Default-568h@2x.png file when creating new projects and we don’t do that any more but include a blank storyboard based system that will still present a black launch image so you shouldn’t be seeing this.

This is why I speculate this is a 10.3 or Xcode 8.3 change. As build 2975 was a 10.2 base SDK and 3068 is 10.3 and you have nothing in your build.setting indicating that you’re doing anything with UILaunchImages or with the Xcode storyboard launch setup.

I recommend since you’re using 3068 and you won’t be deploying to iOS 6 and 7 devices, that you integrate the storyboard setup.

The easiest way for you to do this, if your okay with an all black image right before our splash screen, is to go to the HelloWorld sample app in /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld (if you’re using the latest public build, or CoronaSDK-3068 if you’re using the daily build version of it) and copy the  LaunchScreen.storyboardc file to your project and add 

UILaunchStoryboardName = "LaunchScreen",

to your build.settings in the settings.iphone.plist table where you have UIStatusBarHidden = true line. You should also remove the MinimumSDK line too.

Rob

Thank you very much Rob, it works fine now !!!

your help is very appreciated !

Can you post your build.settings and what Default*.png files do you have in your project?

Thanks

Rob

my build.setting below.

do i have something to change or add ? thanks !

i don’t understand what you mean about “default*.png” and what are the impact of the png file (my backgroundfile ?) on theses black bars…

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { &nbsp; plugins = &nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["plugin.google.iap.v3"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; publisherId = "com.coronalabs", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; supportedPlatforms = { android=true } &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp; }, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;orientation = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;-- Supported values for orientation: &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;default = "portrait", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;supported = { "portrait" }, &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;excludeFiles = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;-- Include only the necessary icon files on each platform &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;iphone = { "Icon-\*dpi.png", }, &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;-- iOS Section &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;iphone = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;plist = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MinimumOSVersion = "7.0", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UIApplicationExitsOnSuspend = false, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;UIStatusBarHidden = false, &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;UIPrerenderedIcon = true, -- set to false for "shine" overlay &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;--UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- This will allow end users to see that the app supports their language when they are browsing and see your app in the app store &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CFBundleLocalizations = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "English", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "French" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CFBundleIconFiles = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-167.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-60.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-60@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-60@3x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-72.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-72@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-76.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-76@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small@3x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-40.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-40@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-50.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"Icon-Small-50@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSAppTransportSecurity = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSExceptionDomains = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["mywebsite.com"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSIncludesSubdomains = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSThirdPartyExceptionAllowsInsecureHTTPLoads = true &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;-- Android Section &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;android = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;usesPermissions = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"android.permission.INTERNET", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.BILLING", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.CHECK\_LICENSE", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;}, }

s

This is is a fairly long explanation but bear with me since there is a lot of history here.

Since the beginning of the iPhone and iPad family devices, Apple has allowed you to have a “startup” or “launch” screen that many used for branding, but Apple has always wanted to look like the first screen of your app to give the illusion that you’re app is starting faster. Back in the day of the iPhone 3 this launch image was called “Default.png” and was 320x480, the size of the iPhone 3/3s screen size. When the iPhone 4 came out, the screen doubled in size (Retina display) and was now 640x960. It was the same shape, so the launch image for that was called Default@2x.png. You just needed to include these in your project. The iPads added some more complexity because they supported “Landscape” oriented launch images, so now you also included a Default-landscape.png and Default-landscape@2x.png file (when the Retina iPads came out).

When Apple came out with the iPhone 5, the needed a way to programmatically know if an app supported “tall” mode, if not you got 88 pixels black bars at the top and bottom of the screen on an iPhone 5 (the iPhone 4 was a 640x960 screen, the iPhone 5 a 640x1136 screen). Older apps that didn’t support tall mode would run in iPhone 4 mode, tall mode apps would fill the extra space.

The way Apple detected this was the presence of a file named Default-568h@2x.png. It had to be 640x1136 portrait only. If you don’t have this, you fall back to 640x960 as the screen size.

Then Apple came out with the new iPhone 6 and 6 plus models which offered yet two more screen sizes that need supported (the 6s/7 and 6s/7 plus models have not changed screen sizes, so they are lumped in with the 6/6 plus for discussions). Apple needed a way to know if developers were just running older iPhone 5 apps or if they were made for the new screens. Since the new models are the same shape as the 5, there wasn’t much of a need to deal with black bars, but iPhone 5 based apps would zoom up to fill the 6 and 6 plus screens, which didn’t always look that good.  Apples solution: Default-667h@2x.png and Default-734h@3x.png files would indicate that apps were designed for those screens. To compound matters, Apple now allowed landscape versions of the Default-734h@3x.png files for the plus models.

But in doing this, there were now 10 of these Default PNG files needed in a project. The naming scheme got complex so they switched to also requiring you to list the files in your build.settings file in a block known as UILaunchImages. This is a terribly complex table that’s prone to error.

With iOS 8, Apple tried to clean up a lot of this. Corona however has provided support going back to iOS 6 until a little over a month ago and the new public build has dropped iOS 6 and 7 support. Now Apple has a very clean way to support launch images that’s down to four files and one line in your build.settings. They still support the older method.

Apple seems to also have made some changes around iOS 10 that has changed the behavior even more. Perhaps starting with iOS 10.2, they started failing submissions that did not have the required Default-568h@2x.png file or the new “Storyboard” based system. And it seems that perhaps with 10.3 the have gone back to showing the black bars in the absence of this file (I’ve not tested this, at this point I’m speculating). We use to include an all black Default-568h@2x.png file when creating new projects and we don’t do that any more but include a blank storyboard based system that will still present a black launch image so you shouldn’t be seeing this.

This is why I speculate this is a 10.3 or Xcode 8.3 change. As build 2975 was a 10.2 base SDK and 3068 is 10.3 and you have nothing in your build.setting indicating that you’re doing anything with UILaunchImages or with the Xcode storyboard launch setup.

I recommend since you’re using 3068 and you won’t be deploying to iOS 6 and 7 devices, that you integrate the storyboard setup.

The easiest way for you to do this, if your okay with an all black image right before our splash screen, is to go to the HelloWorld sample app in /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld (if you’re using the latest public build, or CoronaSDK-3068 if you’re using the daily build version of it) and copy the  LaunchScreen.storyboardc file to your project and add 

UILaunchStoryboardName = "LaunchScreen",

to your build.settings in the settings.iphone.plist table where you have UIStatusBarHidden = true line. You should also remove the MinimumSDK line too.

Rob

Thank you very much Rob, it works fine now !!!

your help is very appreciated !