iOS - when resuming from the lock screen app is rotated to protrait

Lately we are seeing a strange bug that occurs on iOS. 

If the app is open and in the foreground, then you lock the screen, then open the lock-screen - after 1 second it flips from landscape to portrait, then after 1 second it returns to landscape. 

This switch is not followed by a “resize” event, and the ui is not actually re-building.

It’s as if a screenshot of the app was taken, rotated, then returned to correct orientation. 

This happens with the latest daily build (2997) and even in builds before that (2987). 

Is anyone else experiencing this bug?

What can we do to solve it?

I don’t see that behavior. Can you produce a test case?

Thanks

Rob

you can see it in our app: UFM.

For us, this happens on iOS 10 (tested on 10.0.2 and 10.1.1), but on 9 it doesn’t happen (tested on 9.3.5).

I downloaded it on my iPhone 6 (iOS 10.1.1) and I did not observe it. I start the app. I turn it off using the button on the side of the phone. I press the home button and unlock the phone. It returns to the game exactly like I left it. I tried switching orientations too while the phone was sleeping.

Rob

can you test without clicking on the home button? the device should be locked while the app is in the foreground. Then, when you unlock the screen the first thing you see is the app (and the rotation)

I have a pass code/finger print unlock. With iOS 10, no matter how I unlock the device I don’t see this rotation behavior.

Rob

For us this happens with both a pass code and a fingerprint unlock, and it happens on:

iPhone 5 - iOS 10.0.2

iPhone 5S - iOS 10.1.1

iPhone 6 - iOS 10.0.2

It does not happen on devices with iOS 8 and 9.

Perhaps try to login into the app, and then check.

Make sure to lock the screen while still viewing the app. Then when you unlock, you will see the orientation jump. 

I tested on my iPhone 6s Plus (iOS 10.1.1), and I can see the issue *sometimes*, and only when I hold the phone in portrait orientation. If I hold the phone in landscape I do not see it happening.

Most of the time (while holding the phone in portrait) I can see a very brief “black flash” when opening the app from background without noticing any orientation change. I’m guessing that the “black flash” is the same issue, it’s just that the orientation change happens so quickly that it’s not rendered to the screen. Sometimes I do see what @stanga mentioned in his first post: the screen contents is briefly shown rotated and is later shown in landscape. But again, this *only* happens if I open the app while holding the phone in portrait mode. If I hold the phone in landscape mode, I see no “black flash” or orientation issue.

On my iPhone 5 the issue occurs regardless of the device orientation when unlocking the screen.

Can anything be done to resolve this issue?

Thanks in advance

Can you file a bug report?

Rob

I don’t see that behavior. Can you produce a test case?

Thanks

Rob

you can see it in our app: UFM.

For us, this happens on iOS 10 (tested on 10.0.2 and 10.1.1), but on 9 it doesn’t happen (tested on 9.3.5).

I downloaded it on my iPhone 6 (iOS 10.1.1) and I did not observe it. I start the app. I turn it off using the button on the side of the phone. I press the home button and unlock the phone. It returns to the game exactly like I left it. I tried switching orientations too while the phone was sleeping.

Rob

can you test without clicking on the home button? the device should be locked while the app is in the foreground. Then, when you unlock the screen the first thing you see is the app (and the rotation)

I have a pass code/finger print unlock. With iOS 10, no matter how I unlock the device I don’t see this rotation behavior.

Rob

For us this happens with both a pass code and a fingerprint unlock, and it happens on:

iPhone 5 - iOS 10.0.2

iPhone 5S - iOS 10.1.1

iPhone 6 - iOS 10.0.2

It does not happen on devices with iOS 8 and 9.

Perhaps try to login into the app, and then check.

Make sure to lock the screen while still viewing the app. Then when you unlock, you will see the orientation jump. 

I tested on my iPhone 6s Plus (iOS 10.1.1), and I can see the issue *sometimes*, and only when I hold the phone in portrait orientation. If I hold the phone in landscape I do not see it happening.

Most of the time (while holding the phone in portrait) I can see a very brief “black flash” when opening the app from background without noticing any orientation change. I’m guessing that the “black flash” is the same issue, it’s just that the orientation change happens so quickly that it’s not rendered to the screen. Sometimes I do see what @stanga mentioned in his first post: the screen contents is briefly shown rotated and is later shown in landscape. But again, this *only* happens if I open the app while holding the phone in portrait mode. If I hold the phone in landscape mode, I see no “black flash” or orientation issue.

On my iPhone 5 the issue occurs regardless of the device orientation when unlocking the screen.

Can anything be done to resolve this issue?

Thanks in advance

Can you file a bug report?

Rob