Unexpected lifecycle callback sequence when pressing the top button to put iPad to sleep on iPadOS 27 beta

This thread has been locked by a moderator; it no longer accepts new replies.

Hello,

I found a difference in application lifecycle behavior between iPadOS 26.5 and iPadOS 27 beta when the app is running in the foreground and the iPad top button is pressed to put the device into sleep.

Test condition

  • Device: iPad
  • App state: app is running in foreground (active)
  • Action: press the top button once to put the device to sleep
  • Observed via UIApplicationDelegate lifecycle callbacks

Observed behavior

iPadOS 26.5

The following callbacks are called in this order:

  1. applicationWillResignActive
  2. applicationDidEnterBackground

iPadOS 27 beta

The following callbacks are called in this order:

  1. applicationWillResignActive
  2. applicationDidBecomeActive
  3. applicationWillResignActive
  4. applicationDidEnterBackground

Expected behavior

I expected the lifecycle sequence on iPadOS 27 beta to be the same as, or at least consistent with, iPadOS 26.5 when the device is put to sleep from the foreground app state.

In particular, I did not expect applicationDidBecomeActive to be called during the transition to sleep/background.

Question

Is this changed behavior expected in iPadOS 27 beta, or could this be a bug in the beta?

If this is expected, could you clarify the intended lifecycle behavior when the top button is pressed and the device transitions to sleep?

Thank you.

Answered by DTS Engineer in 900846022

Let’s focus this discussion on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Let’s focus this discussion on your other thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Unexpected lifecycle callback sequence when pressing the top button to put iPad to sleep on iPadOS 27 beta
 
 
Q