Overlay hide called on device suspend

Has anyone run into this issue?

When you show an overlay and the system suspends it immediately calls the end overlay function.

Appreciate the help :slight_smile:

K [import]uid: 142918 topic_id: 34427 reply_id: 334427[/import]

I did a quick test in the simulator, and when I suspend it (CMD-Down Arrow) and resume(CMD-Down Arrow) again, my overlay is still there and I have to click my close button to hide the overlay.

Let me ask others on the team if they are aware of any issues they are aware of.
[import]uid: 199310 topic_id: 34427 reply_id: 136841[/import]

huh, thanks for testing it, yeah, my suspend runs the overlay ended code then does an exit, did exit, and will enter upon resuming from the suspension.

pretty weird, I’m going through each line of code, but it seems like that wouldn’t have much to do with my code, especially since I’m not running any suspend/resume listener code.

K [import]uid: 142918 topic_id: 34427 reply_id: 137220[/import]

I did a quick test in the simulator, and when I suspend it (CMD-Down Arrow) and resume(CMD-Down Arrow) again, my overlay is still there and I have to click my close button to hide the overlay.

Let me ask others on the team if they are aware of any issues they are aware of.
[import]uid: 199310 topic_id: 34427 reply_id: 136841[/import]

So here’s what I have so far, the menu is the overlay scene and the inGame is the bottom scene calling the menu overlay.

This is from my terminal:

-- as expected, game starts and creates the menu overlay scene  
14:35:50.857 Corona Simulator[5759:707] HERE I AM!!!!!!  
14:35:51.247 Corona Simulator[5759:707] ------------------------------ CREATE MENU  
14:35:52.258 Corona Simulator[5759:707] ------------------------------ ENTER MENU  
  
-- here is where I start a suspend in the simulator  
  
14:35:58.634 Corona Simulator[5759:707] ------------------------------ EXIT MENU  
14:35:58.634 Corona Simulator[5759:707] ------------------------------ DESTROY MENU  
14:35:58.640 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ OVERLAY ENDED INGAME  
14:35:58.644 Corona Simulator[5759:707] on sys: suspend  
  
-- here is where I run resume  
  
14:36:22.083 Corona Simulator[5759:707] on sys: resume  
14:36:22.090 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ EXIT INGAME  
14:36:22.106 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ DID EXIT INGAME  
14:36:22.121 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ WILL ENTER INGAME  

Any thoughts or feedback would really help as I’m considering a full rewrite if I can’t fix it here.

K [import]uid: 142918 topic_id: 34427 reply_id: 137232[/import]

Can you produce a very small sample app that demos this and file a bug report using the “Report a Bug” link at the top of the page?

This may be the expected behavior, but it sounds like it shouldn’t be.
[import]uid: 199310 topic_id: 34427 reply_id: 137251[/import]

huh, thanks for testing it, yeah, my suspend runs the overlay ended code then does an exit, did exit, and will enter upon resuming from the suspension.

pretty weird, I’m going through each line of code, but it seems like that wouldn’t have much to do with my code, especially since I’m not running any suspend/resume listener code.

K [import]uid: 142918 topic_id: 34427 reply_id: 137220[/import]

So here’s what I have so far, the menu is the overlay scene and the inGame is the bottom scene calling the menu overlay.

This is from my terminal:

-- as expected, game starts and creates the menu overlay scene  
14:35:50.857 Corona Simulator[5759:707] HERE I AM!!!!!!  
14:35:51.247 Corona Simulator[5759:707] ------------------------------ CREATE MENU  
14:35:52.258 Corona Simulator[5759:707] ------------------------------ ENTER MENU  
  
-- here is where I start a suspend in the simulator  
  
14:35:58.634 Corona Simulator[5759:707] ------------------------------ EXIT MENU  
14:35:58.634 Corona Simulator[5759:707] ------------------------------ DESTROY MENU  
14:35:58.640 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ OVERLAY ENDED INGAME  
14:35:58.644 Corona Simulator[5759:707] on sys: suspend  
  
-- here is where I run resume  
  
14:36:22.083 Corona Simulator[5759:707] on sys: resume  
14:36:22.090 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ EXIT INGAME  
14:36:22.106 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ DID EXIT INGAME  
14:36:22.121 Corona Simulator[5759:707] +++++++++++++++++++++++++++++ WILL ENTER INGAME  

Any thoughts or feedback would really help as I’m considering a full rewrite if I can’t fix it here.

K [import]uid: 142918 topic_id: 34427 reply_id: 137232[/import]

Can you produce a very small sample app that demos this and file a bug report using the “Report a Bug” link at the top of the page?

This may be the expected behavior, but it sounds like it shouldn’t be.
[import]uid: 199310 topic_id: 34427 reply_id: 137251[/import]