[
https://issues.apache.org/jira/browse/CB-12632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15955076#comment-15955076
]
Nikita Matrosov commented on CB-12632:
--------------------------------------
[~marck1991], couldn't reproduce this bug
Could you please confirm that 'backbutton' handler is called by using this code:
{code:javascript}
document.addEventListener("backbutton", function(e) {
console.log("backbutton is fired");
e.preventDefault();
}, false);
{code}
Also it'd be helpful, if you provide some information about your device.
> Cordova Screen Orientation Plugin breaks disabling Android hardware back
> button
> --------------------------------------------------------------------------------
>
> Key: CB-12632
> URL: https://issues.apache.org/jira/browse/CB-12632
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Environment: Android 5.1.1
> Reporter: Marc K.
>
> cordova-plugin-screen-orientation version 2.0.0 breaks disabling the Android
> hardware backbutton by javascript code (for example:
> document.addEventListener("backbutton", function(){}, false); ) . It seems
> the code is simply ignored and the hardware backbutton works. Reverting to
> version 1.4.2 solves the problem again and the javascript code does its job
> so the hardware backbutton is disabled as expected.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]