RuleIn force

Predictive back is on by default

Apps targeting Android 16 (API 36) get predictive back animations by default, and onBackPressed() and KEYCODE_BACK no longer work for back handling.

Apps targeting API 36 on Android 16 and higher

What the rule is

When an app targets API 36 and runs on Android 16 or higher, predictive back animations are on by default.

onBackPressed() is no longer called and KEYCODE_BACK is no longer dispatched, so custom back logic built on them silently stops running.

There is a temporary opt out: android:enableOnBackInvokedCallback="false" on <application> or <activity>.

Who it affects

Apps that override onBackPressed() or handle KEYCODE_BACK, for example to confirm before leaving a screen or to close a drawer.

How to fix it

  1. Move back handling to OnBackPressedDispatcher with an OnBackPressedCallback, or BackHandler in Compose.
  2. Enable the callback only when you need to intercept back, so the system animation can run the rest of the time.
  3. Use the opt out only while you migrate.

Check your app

Run this in your Android project. It checks this rule on your machine, and nothing about your project is uploaded.

npx play-preflight check --only predictive-back

Official source