I opened PR #2054 (https://github.com/apache/cordova-android/pull/2054) for 15.1.1, which removes handleBackButton() from the CordovaWebView interface and keeps it internal to CordovaWebViewImpl. CoreAndroid calls it directly for the built-in implementation. Custom implementations continue to receive the same back-key events as in 15.1.0. The CI checks passed.
I also created issue #2053 (https://github.com/apache/cordova-android/issues/2053) and assigned it to the 16.0.0 milestone to track adding handleBackButton() to the public CordovaWebView interface in the next major release. > Am 22.11.2026 um 22:23 schrieb Norman Breau <[email protected]>: > > Sounds like it. > > We should create an issue to hook up the public interface once we start > developing for our next major. We can setup a milestone on GitHub if there > isn't one already so that we don't forget about it. > > On Nov 22, 2026 3:09 p.m., Manuel Beck <[email protected]> wrote: > Hi Norman, > > I thought already about this, that this would be a breaking change. > > I’d remove handleBackButton() from the public CordovaWebView interface and > keep it package-private in CordovaWebViewImpl. > > CoreAndroid can use an instanceof check to call the new handler for > CordovaWebViewImpl and keep the 15.1.0 key-event dispatch for other > implementations. If the selected path leaves the back action unhandled, > Android’s default dispatcher takes over. > > That would let us ship the fix from PR #2029 > (https://github.com/apache/cordova-android/pull/2029) in 15.1.1 without > requiring downstream implementors to change their code. I’d keep the handler > internal unless we identify a use case for a public hook. Does that match > what you had in mind? > > Am 22.11.2026 um 19:51 schrieb Norman Breau <[email protected]>: > > Adding a method to a public interface "breaks" downstream implementors > forcing them to make changes to their codebase therefore we would have to > treat such a change as a breaking change. That means it would require a major > release. > > We might be able to avoid a breaking change by removing the public interface > change temporarily and do a runtime guard so that we only call on the API if > it's actually implemented, along with a TODO for the next major release to > fix it properly. > > On Nov 22, 2026 2:16 p.m., Manuel Beck via dev <[email protected]> wrote: > Hi everyone, > > I’d like to discuss a compatibility question before preparing a Cordova > Android 15.1.1 release candidate. > > PR #2029 (https://github.com/apache/cordova-android/pull/2029) fixes an issue > where the same Android back action could be handled twice. It also adds an > abstract handleBackButton() method to the public CordovaWebView interface. > The built-in implementation already provides it, but anyone implementing the > interface directly would need to add the method when rebuilding against the > update. > > Do we consider third-party implementations of CordovaWebView part of our > compatibility commitment? One option for 15.1.1 is to keep the new handler > internal to CordovaWebViewImpl and preserve the previous key-event dispatch > for custom implementations. That would let us ship the fix for the built-in > WebView while keeping the existing interface compatible. > > I’d also like to include the status bar documentation update in PR #2052 > (https://github.com/apache/cordova-android/pull/2052). It documents the > visibility behavior after PR #2000 > (https://github.com/apache/cordova-android/pull/2000) and the alpha > conversion fix in PR #2049 > (https://github.com/apache/cordova-android/pull/2049). > > How should we handle the CordovaWebView change? Should we preserve the > existing interface for 15.1.1, defer the back-button fix to a later release, > or take another approach? > > Thanks, > Manuel > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > > >
