quick question for when you hit 'home' button on iOS devices..

Greetings,

Does the ‘scene:hide’ Composer function get called when you hit the ‘home’ button on an iOS device, which suspends the App…?  Or does seperate code need to be put in to recognize such an event?

Furthermore - if you have a scene, lets call it level1… and then an overlay scene, call it pause.

If you are in the overlay scene, (over the level1 scene)… and you hit the home button on iOS device, will it trigger the ‘scene:hide’ function in the overlay as well as the level1 scene… or just the overlay scene, neither, one or the other?

I’ve resolved most of my memory leak issues except when I suspend App by pressing the home button.  Would like to know if any of the Composer Functions are getting called when this happens or should I write a separate function… thanks!

Hi @henson802,

No, suspending the app doesn’t trigger Composer’s scene:hide or any other Composer function.

Take care,

Brent

@Brent Sorrentino- 

Cool well thanks for that info.

On a somewhat related note, in simulator - when I suspend and come back to app. my memory doesn’t increase / leak.

However, when I test on my actual device, an iphone5 - the memory jumps up by 2KBs everytime I suspend then come back to resume.  It will NOT go back down.  

However, if I never Suspend my app, my memory doesn’t leak…Any ideas?

Thanks appreciate it

Hi @henson802,

No, suspending the app doesn’t trigger Composer’s scene:hide or any other Composer function.

Take care,

Brent

@Brent Sorrentino- 

Cool well thanks for that info.

On a somewhat related note, in simulator - when I suspend and come back to app. my memory doesn’t increase / leak.

However, when I test on my actual device, an iphone5 - the memory jumps up by 2KBs everytime I suspend then come back to resume.  It will NOT go back down.  

However, if I never Suspend my app, my memory doesn’t leak…Any ideas?

Thanks appreciate it