cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9672) Device Back Button Works only once in all html pages When i install app
Date Mon, 21 Sep 2015 20:47:04 GMT

    [ https://issues.apache.org/jira/browse/CB-9672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14901365#comment-14901365
] 

Joe Bowser commented on CB-9672:
--------------------------------

What exactly are you trying to do? Once you override the back button, you're dealing with
your app's state, and you need to have code to handle it so that you can actually exit your
application.

> Device Back Button Works only once in all html pages When i install app
> -----------------------------------------------------------------------
>
>                 Key: CB-9672
>                 URL: https://issues.apache.org/jira/browse/CB-9672
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaLib
>    Affects Versions: 4.1.1
>         Environment: windows 8.1 Android adt eclipse
>            Reporter: irfan baig
>              Labels: features
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> Device Back Button Works only once in all html pages When i install app.
> Code:
> function onLoad() {
>     document.addEventListener("deviceready", onDeviceReady, false);
> }
> // device APIs are available
> //
> function onDeviceReady() {
>     // Now safe to use the Cordova API
> 	/* Registering the basic events associated with device hardware */
> 	document.addEventListener("backbutton", function() {
>     	$("#back").click();
>     }, false);
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message