Back Press not working in WebView after Android 16 update

After updating to Android 16 and also updating Niotron, the BackPressed event in WebView is not working correctly.

Earlier, this block worked perfectly:

  • If WebView has history → GoBack

  • If no history → Close Application

But after Android 16 update:

  • .CanGoBack always returns false

  • Back button closes the app even if there is history

  • WebView does not stay inside the app

blocks

In principle, you could simplify the blocks; I tested it and it works without problems on Android 15.

image
or
image

ok, Thanx for your suggestion its work

Try this :backhand_index_pointing_down: it will fix and help you in advance
goback.aia (2.3 KB)

Kindly mark as solution if you find it fixing the issue.

The solution has already been provided and it was said to work.
https://community.niotron.com/t/back-press-not-working-in-webview-after-android-16-update/23898/2?u=zodiac_logic

1 Like