Skip to content

backbutton event not triggered on some devices #1904

@seamlink-aalves

Description

@seamlink-aalves

Bug Report

Problem

Back button event not triggered on some devices. We're testing the update for cordova-android 15 and we noticed on some devices with recent version of the OS (>=15) the backbutton is not triggered.

We were only able to fix this for all devices by changing the AndroidManifest.xml with:

        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge"
            target="/manifest/application">
            <application android:enableOnBackInvokedCallback="false" />
        </edit-config>

What is expected to happen?

The eventListener for backbutton should be triggered

What does actually happen?

The eventListener for backbutton is not triggered

Information

Command or Code

Environment, Platform, Device

Version information

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions