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

altShiftDev commented on CB-14144:
----------------------------------

[~jcesarmobile] I loaded up an SDK21 and can confirm it happens here too. I 
need to go to at least 24 to prevent backbutton issues. 

Can you confirm you're using an eventListener to capture the backbutton and you 
can prevent the app from closing?

Can you confirm your settings for me?

Here's my setup:
*cordova requirements*
Android Studio project detected

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed 
android-28,android-27,android-26,android-25,android-24,android-23,android-22,android-21,android-19
Gradle: installed /usr/local/Cellar/gradle/4.8/bin/gradle

*cordova --v*
8.0.0

*cordova platform*
Installed platforms:
 android 7.0.0
Available platforms:
 browser ~5.0.1
 ios ~4.5.4
 osx ~4.0.1
 windows ~5.0.0
 www ^3.12.0

> BackButton Event Listeners do not fire on Android API 23 or below
> -----------------------------------------------------------------
>
>                 Key: CB-14144
>                 URL: https://issues.apache.org/jira/browse/CB-14144
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: cordova-android-7.0.0
>         Environment: Using Android Studio emulators Galaxy, Pixel, Nexus 5... 
> all exhibit this behaviour. 
> Quasar Framework is building my project a long with webpack but I've no 
> reason to suspect Quasar as the cause, they only register a single 
> eventListener for backbutton and I've manually gone in and edited the source 
> code for this listener and it never fires leading me to believe the problem 
> is with Cordova.
>            Reporter: altShiftDev
>            Assignee: Joe Bowser
>            Priority: Major
>
> App exits immediately on back button press without ever firing the 
> eventListener designed to capture and reroute it.
> There is nothing wrong with my eventListener code, it's been tested on Api 25 
> and higher and is very stable:
> `document.addEventListener('backbutton', this.onBackButton, false)`
> I have not yet tested to confirm if API 24 has this bug or not.
> This affects many of my users, including myself as I've got a phone running 
> Android at these versions. The app is completely killed with every tap of the 
> back button (new launches of the app cold boot with splashscreen) making it 
> impossible to properly navigate the app: closing modals, moving backwards in 
> operations, etc...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to