Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Has anyone else tried the 'GetResumed()' command?

Author
Message
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 8th May 2012 23:11
In anticipation of wanting to have a well behaved app, I added a call to GetResumed to check whether the game should be placed into paused mode.

And it didn't appear to work. I kinda expected it to not work in Windows, but it didn't work on my iPod Touch or my iPad.

I added a call to Message to show if GetResumed returned one and it never appeared.

Is this a legit bug, or is there something else that should be done?

And it looks like the game continues to run while in the background (my timer keeps going and I use GetFrameTime to update it).

I can't find any command that lets me check to see if the app has been minimised (windows or Mac) or sent to the background (iOS, Android).

This is quite important for being accepted as an app by Apple.

Cheers,
Ancient Lady
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 9th May 2012 00:00
If you use get frame time then it might not be a good test as you might end up with 1 big sync. Count every frame instead and see what happens.

Having a call is also different than multitasking. You need to try it on a phone with an incoming call.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 9th May 2012 00:36
I just reran my test on my Android device and it actually did catch the GetResumed.

And I was wrong about the timer updating while in the background. I apparently didn't look at the time properly before and after.

But my iOS app does not get one when calling GetResumed(), like it should.

Cheers,
Ancient Lady
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th May 2012 00:50
Currently only the Blackberry and Android implement this command properly, but iOS will follow in the near future if I find a way of detecting it.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 10th May 2012 16:46
Okay. Good to know.

It doesn't hurt to leave the code in place to detect it and put the app in 'pause' mode.

When it becomes functional in iOS (I have faith in you), then it will become an update in the App Store.

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-05-17 04:02:48
Your offset time is: 2024-05-17 04:02:48