oniPhoneResignActive
by Tim Kreger · in iTorque 2D · 06/15/2011 (4:22 pm) · 0 replies
Hi,
my game currently crashes when the home button is called or the app is switched. This is because the the game tries to keep rendering and is killed by the OS. I'm trying to hand the notification with oniPhoneResignActive but it never gets cause and the console complains of there being no function oniPhoneResignActive when the home key is hit.
I've put the function in the game.cs with the other notification handlers
oniPhoneChangeOrientation
oniPhoneStreamEnd etc
and they seem not to be called.
Does anyone have and suggestions as to why this is not being called?
Also what is the best way to halt rendering without ending the game so when the application becomes active again we can start from where we left off.
Regards
Tim
UPDATE :: After a good nights sleep, a clean and build I'm now catching the noftification. I just need advice on how to pause rendering. And return on active.
my game currently crashes when the home button is called or the app is switched. This is because the the game tries to keep rendering and is killed by the OS. I'm trying to hand the notification with oniPhoneResignActive but it never gets cause and the console complains of there being no function oniPhoneResignActive when the home key is hit.
I've put the function in the game.cs with the other notification handlers
oniPhoneChangeOrientation
oniPhoneStreamEnd etc
and they seem not to be called.
Does anyone have and suggestions as to why this is not being called?
Also what is the best way to halt rendering without ending the game so when the application becomes active again we can start from where we left off.
Regards
Tim
UPDATE :: After a good nights sleep, a clean and build I'm now catching the noftification. I just need advice on how to pause rendering. And return on active.
About the author