ipad shows splash screen when resume

Hi all,

i am testing my app on ipad 3,

i have the setting below in build.settings file

UIApplicationExitsOnSuspend = false

I dont want to show/see the splash images every time i resume from background app. But it shows every time i bring it to front.

The setting above is required to get this. But it doest work.

it shows the sp. screen about 0.5 seconds.

Can you help me with this problem?

Hi @aclk,

I assume you nested this property inside the “iphone” and “plist” tables? Is the splash screen that’s showing the one that you placed in the directory titled “Default(suffix).png”? (suffix being one of the varieties of splash screens designed for the various iOS devices).

Regards,

Brent

Hi Brent,

Yes i am talking about the plist values in iphone, and i have both Default.png s and Default@2x.png png s (landscape and portrait). I deleted @2x versions but it didn’t work either.

Thank You.

Ahmet.

Hi Ahmet,

Can you please post the entire contents of your “build.settings” file here? I’d like to examine it, so I have the full context.

Thanks,

Brent

Hi Brent

here is the file content:

settings = { orientation = {default = "portrait", content = "portrait", supported ={"landscapeLeft", "landscapeRight", "portrait", "portraitUpsideDown"}}, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = false, UIApplicationExitsOnSuspend = false, } }, }

Ahmet.

Hi Ahmet,

This is very odd. Your build.settings look correct to me. If I had to suggest one change, it might be to remove the “content” parameter from the “orientation” table. That locks the Corona content space to portrait, but you’re allowing all 4 orientations in the “supported” table.

Anyway, have you considered simply using a series of black (empty) Default launch screens, and then building a proper intro/launch screen in Corona, as a scene? Although many people use the Default image as a visual launch screen, I don’t think Apple ever intended them to be used like that (and reading their documentation, that seems to be true). Rather, I think they intended them to be used as some kind of “game/app preview” image that would display before the menu screen loaded.

Personally, I don’t use the Default images as my intro screen. I build a loading scene with a timer and a logo (animated if it’s appropriate) and then shift to the menu after. Of course, you can’t just avoid the Default screens entirely… in fact, you must use the iPhone5 “Default-568h@2x.png” to trigger “tall” mode on that device. But these days, I just make them all empty black rectangles. They’re small in size (less that 1 KB) and my custom loading scene gives me more control over the timing, visual appearance, and more.

Does this help at all?

Brent

Hi Brent,

I tried everything but still shows everytime, still no luck :(.

Ahmet.

I know that sometimes this happens when your app crashes on suspend.  The app then technically is restarting itself from the crash or if the app is working in the background and the screen is not ready.  

I’m not sure how to test this with Corona, but this is a documented issue when building an obj C iphone app.

Hi @aclk,

I assume you nested this property inside the “iphone” and “plist” tables? Is the splash screen that’s showing the one that you placed in the directory titled “Default(suffix).png”? (suffix being one of the varieties of splash screens designed for the various iOS devices).

Regards,

Brent

Hi Brent,

Yes i am talking about the plist values in iphone, and i have both Default.png s and Default@2x.png png s (landscape and portrait). I deleted @2x versions but it didn’t work either.

Thank You.

Ahmet.

Hi Ahmet,

Can you please post the entire contents of your “build.settings” file here? I’d like to examine it, so I have the full context.

Thanks,

Brent

Hi Brent

here is the file content:

settings = { orientation = {default = "portrait", content = "portrait", supported ={"landscapeLeft", "landscapeRight", "portrait", "portraitUpsideDown"}}, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = false, UIApplicationExitsOnSuspend = false, } }, }

Ahmet.

Hi Ahmet,

This is very odd. Your build.settings look correct to me. If I had to suggest one change, it might be to remove the “content” parameter from the “orientation” table. That locks the Corona content space to portrait, but you’re allowing all 4 orientations in the “supported” table.

Anyway, have you considered simply using a series of black (empty) Default launch screens, and then building a proper intro/launch screen in Corona, as a scene? Although many people use the Default image as a visual launch screen, I don’t think Apple ever intended them to be used like that (and reading their documentation, that seems to be true). Rather, I think they intended them to be used as some kind of “game/app preview” image that would display before the menu screen loaded.

Personally, I don’t use the Default images as my intro screen. I build a loading scene with a timer and a logo (animated if it’s appropriate) and then shift to the menu after. Of course, you can’t just avoid the Default screens entirely… in fact, you must use the iPhone5 “Default-568h@2x.png” to trigger “tall” mode on that device. But these days, I just make them all empty black rectangles. They’re small in size (less that 1 KB) and my custom loading scene gives me more control over the timing, visual appearance, and more.

Does this help at all?

Brent

Hi Brent,

I tried everything but still shows everytime, still no luck :(.

Ahmet.

I know that sometimes this happens when your app crashes on suspend.  The app then technically is restarting itself from the crash or if the app is working in the background and the screen is not ready.  

I’m not sure how to test this with Corona, but this is a documented issue when building an obj C iphone app.