You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/15 21:59:42 UTC

[GitHub] [cordova-android] rodrigograca31 commented on issue #687: [Android 9 - TargetSKD 28] Backbutton not working

rodrigograca31 commented on issue #687: [Android 9 - TargetSKD 28] Backbutton not working
URL: https://github.com/apache/cordova-android/issues/687#issuecomment-473454449
 
 
   Can't replicate...
   ```
   cordova create hello com.example.hello HelloWorld
   cd hello/
   cordova platform add android@^7.1.4
   cordova run
   cordova platform rm android
   cordova platform add android@^8.0.0
   cordova run
   ```
   
   my javascript
   ```javascript
   // Application Constructor
   initialize: function() {
       document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
       document.addEventListener("backbutton", this.onBackKeyDown, false);
   },
   
   onBackKeyDown: function()
   {
       console.log("something");
   },
   ```
   
   Tried 7.1.4, 8.0.0, tried to do the Android Studio thing, tested on Android 8 and 9 and worked 100% as expected. (logged "something")
   
   ```
   Node version: v8.10.0
   Cordova version: 8.1.1
   ```
   
   @fgarcia5 would you mind running the above commands to create a brand new app, add the javascript and see if the problem persists?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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