GLBasic forum

Main forum => GLBasic - en => Topic started by: fjsantosb on 2009-Sep-11

Title: Behaviour after sleep / stand by - iPhone.
Post by: fjsantosb on 2009-Sep-11
Hi all,

I comment that behaviour on some post before, but i have done a complete set of test now.
Behavious
When i left an GLBasic application on iPhone running and set iPod / iPhone to stand by (pressing shutdown button for a second), when i come to iPod / iPhone again, and wake up, my application seems to reload, but i found previous 'thread' running on background.
In my case, my game menu load again (like first time), but in the background i can play the game i was playing previously, so its like i have 2 'threads' running at once (yep i know i can't play 2 same app on iPhone), but only respond to touch first.

I have tested and found the same behaviour on iPod 1G (jailbreaked), iPod 2G (not jailbreaked), iPhone 3G (not jailbreaked).
Rest of applications works without problems after sleep (starting on the point they were sleeped), all app i have tested (about 30), have this behaviour, so i can say this must be the 'standar' behaviour.

I am really worried about this, cause in about 1 week, i will send my app to Apple Reviews, and i am worried they rejected my app cause this.

Thanks in advance,

fjsantos.
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: codegit on 2009-Sep-11
Does anybody know if ScribbleMP was accepted successfully by Apple???  :|
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: freshworks on 2009-Sep-11
Yes, just searched scribblemp in the AppStore and it is there! So it looks like it's aproved :) yeeeeeeesssss! Great news

cheers jespar
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: codegit on 2009-Sep-11
Quote from: freshworks on 2009-Sep-11
Yes, just searched scribblemp in the AppStore and it is there! So it looks like it's aproved :) yeeeeeeesssss! Great news

cheers jespar

Excellent news!!!!!  :good:
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: fjsantosb on 2009-Sep-11
Yep, whithout a doubt, that its really great news!

Best Regards, fjsantos.
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: Kitty Hello on 2009-Sep-13
also this:
itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=329485776&mt=8&s=143441 (http://itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=329485776&mt=8&s=143441)
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: fjsantosb on 2009-Sep-18
Hi there.
Behaviour since last update (v 7.115) , has change, now after sleep, the app is shutdown, and i can tap on it to launch (as normal). I dont know if that behaviour was done intentionally, but i think that is the best behaviour that app can take.
I only want let you know.
Best regards, fjsantos.
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: Kitty Hello on 2009-Sep-18
Yes, I changed that, and I think it's the safest thing to do. Because it might hog SPU power when in the background otherwise.
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: fjsantosb on 2009-Sep-18
Yep, is the best solution indeed.
Only one question, its calls gbl_on_quit before exit?

Best regards, fjsantos.
Title: Re: Behaviour after sleep / stand by - iPhone.
Post by: Kitty Hello on 2009-Sep-18
yes, of course.