marcglasberg / back_button_interceptor

Flutter Package: May be used to intercept the Android back-button, as an alternative to `WillPopScope`.
BSD 2-Clause "Simplified" License
105 stars 21 forks source link

Not working with Android 13 #26

Closed fede1295 closed 4 months ago

fede1295 commented 5 months ago

On android 13 the interceptor doesn't seem to work, backwards isn't really recognised.... this doesn't happen with android 12

marcglasberg commented 5 months ago

Ok, I'll test this as soon as I can. But that's a bit weird, as I'm only interacting with Dart code, not any native code.

msxenon commented 4 months ago

same issue

msxenon commented 4 months ago

found it, its working as expected but had to set this to false in android manifest android:enableOnBackInvokedCallback="false" you need to disable it so the back button callback will work as expected before

marcglasberg commented 4 months ago

@fede1295 Could you please try setting this to false in the Android manifest: android:enableOnBackInvokedCallback="false" ?

marcglasberg commented 4 months ago

I added this information to the documentation. Thanks @msxenon and @fede1295