iOS suspend / RESUME very slow !

Hi there,

i wrote already about, but did not got an answer.

could u please look again howto improve the Resume Speed on IOS

when app was suspended.

On my old Compilition with Corona 1181 it was way faster.

As I call a password window after Resume it should come immediatly and not as now

5 secs later (in that time still the old screen is visible)

Or is there a way to implement a empty screen when the app goes into suspend.

(something we we activate in the config.lua)

I tried to start a new Page with a Lock symbol when the app goes into suspend

(in the onSystemEvent Listener) and even to Remove all Content form the screen,

but it does not work.

Please any help is appreciated, because I can already hear my Users after the Update

“Why does it need so long to ask for the Password… anyone can see my last content on the page for 5 Seconds!!”

Thanks and I hope to hear from one of Corona this time.

Greets

Chris

Hi Chris.  I guess I’m  not following the problem.  I just did a test on one of my apps and the screen comes up immedietly after I swipe the unlock screen.

What version are you building with?

When you talk about a password are you talking about the phone’s lock screen clearing or is your app looking for a resume event and needs to show some password?  Perhaps a better description of the problem would  help.

Also,  have you tethered your phone to your computer and watched the console log as you’re doing this?  Maybe put in some print statements (Make sure to include :

io.output():setvbuf(‘no’)

at the top of your main.lua so your print statements appear as they happen instead of getting buffered.

Hi Rob, so nice u answer.

and sorry for my unclear describtion. right , there are some infos missing:

its not about the unlock screen or so.

  1. Its only on iOS !!

just the normal suspend situation when a User clicked the round HomeButton and the App comes suspended.

Than after open it again and it resumes, the old Screen (before clicking the homebutton) comes up, but stays around 4-5 Seconds, till i get a response within Corona (AppResume) and I can forward the user to the Password Screen from the App itself.

That wasnt in the old Corona 1181… now im using build 2169

greets

chris

I wrote this little test program:

io.output():setvbuf('no') local l = display.newText("Running", display.contentCenterX, display.contentCenterY, "Helvetica", 30) local function onSystemEvent( event )     print( "System event name and type: " .. event.name, event.type )     l.text = event.type end Runtime:addEventListener( "system", onSystemEvent )

When I run it on my iPhone 5, I see “applicationStart” until I hit the home button which immediately brings up the springboard.  Then when I tap on my icon again to go back to the app, I see for maybe 1/2 of a second “applicationStart” then it flips to “applicationResume”.  So there is a slight delay, but I don’t know if there would be much we can do about it.  Can you try the above code?

Rob

Hi, i will test… thank u to keep with me on that topic.

I also would send u even more from my app source so u could see better as the functionality of the app is quiet complex and to remove all uneccesary around would be quiet a lot of action. easier would be to show u the story in whole :slight_smile:

I guess its understandable I dont like to post the whole source now here in the forum, can i send it to u in a PM or elseway?

For sure, if we find the problem we can share the result here with the community.

Thx

Chris

Hi Chris.  I guess I’m  not following the problem.  I just did a test on one of my apps and the screen comes up immedietly after I swipe the unlock screen.

What version are you building with?

When you talk about a password are you talking about the phone’s lock screen clearing or is your app looking for a resume event and needs to show some password?  Perhaps a better description of the problem would  help.

Also,  have you tethered your phone to your computer and watched the console log as you’re doing this?  Maybe put in some print statements (Make sure to include :

io.output():setvbuf(‘no’)

at the top of your main.lua so your print statements appear as they happen instead of getting buffered.

Hi Rob, so nice u answer.

and sorry for my unclear describtion. right , there are some infos missing:

its not about the unlock screen or so.

  1. Its only on iOS !!

just the normal suspend situation when a User clicked the round HomeButton and the App comes suspended.

Than after open it again and it resumes, the old Screen (before clicking the homebutton) comes up, but stays around 4-5 Seconds, till i get a response within Corona (AppResume) and I can forward the user to the Password Screen from the App itself.

That wasnt in the old Corona 1181… now im using build 2169

greets

chris

I wrote this little test program:

io.output():setvbuf('no') local l = display.newText("Running", display.contentCenterX, display.contentCenterY, "Helvetica", 30) local function onSystemEvent( event )     print( "System event name and type: " .. event.name, event.type )     l.text = event.type end Runtime:addEventListener( "system", onSystemEvent )

When I run it on my iPhone 5, I see “applicationStart” until I hit the home button which immediately brings up the springboard.  Then when I tap on my icon again to go back to the app, I see for maybe 1/2 of a second “applicationStart” then it flips to “applicationResume”.  So there is a slight delay, but I don’t know if there would be much we can do about it.  Can you try the above code?

Rob

Hi, i will test… thank u to keep with me on that topic.

I also would send u even more from my app source so u could see better as the functionality of the app is quiet complex and to remove all uneccesary around would be quiet a lot of action. easier would be to show u the story in whole :slight_smile:

I guess its understandable I dont like to post the whole source now here in the forum, can i send it to u in a PM or elseway?

For sure, if we find the problem we can share the result here with the community.

Thx

Chris