Restore windows when resumed from background

#1

When I resume play.js from background it has all my editing tabs closed and asks me whether to start a new project. This behavior is poor. For reference, I’m on an iPad Pro 2018 (11in), iOS 12.2.

0 Likes

#2

Hi rikumi :wave:

Thanks for flagging the issue.

Does this happen every time the app goes to background no matter for how long? if so, it shouldn’t be the case. I’ll take a deeper look.

0 Likes

#3

All the open editors are closed even when I command-Tab to another app and immediately go back, although it doesn’t open a new editor window every time.

0 Likes

#4

I’ll continue doing tests but I can’t reproduce it following your steps. Do you have 2 apps side by side while switching between apps?

gif

0 Likes

#5

You reminded me… This behavior reproduces only with another app docked aside.

0 Likes

#6

Ok that makes sense! this is because when switching between traits (window sizes) the state of the app is refreshed to load the iPad or iPhone UI based on the size category. For some reason the size category is incorrectly changing for a short period of time when coming back from background having two apps running side by side.

We’ll rethink how we handle this case so context is not lost moving the app to background under this circumstances.

Thanks for flagging :slight_smile:

1 Like