Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ion-back-button different than android "back" button #16869

Closed
lampi87 opened this issue Dec 23, 2018 · 4 comments
Closed

ion-back-button different than android "back" button #16869

lampi87 opened this issue Dec 23, 2018 · 4 comments
Labels
package: angular @ionic/angular package package: core @ionic/core package

Comments

@lampi87
Copy link

lampi87 commented Dec 23, 2018

Bug Report

Ionic version:
[x] 4.x

Current behavior:
Using button "ion-back-button" does not trigger history go back, e.g.:

  • Switch between some tabs.
  • Open subpage
  • Go back using ion-back-button
  • Click back button of Android device (the one at bottom)
  • Subpage is opened, which was closed using ion-back-button
    bug gif

Expected behavior:

  • Pressing ion-back-button should be similar to pressing Android back button

Steps to reproduce:
Use code from https://github.com/lampi87/ionic-bug-test and test it in Android Emulator or on Android device.

Ionic info
Ionic:

ionic (Ionic CLI) : 4.6.0 (C:\Users\Alexander\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-rc.0
@angular-devkit/build-angular : 0.10.7
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.2

Cordova:

cordova (Cordova CLI) : not installed
Cordova Platforms : android 7.1.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.1, (and 10 other plugins)

System:

Android SDK Tools : 26.1.1 (C:\Users\Alexander\AppData\Local\Android\Sdk)
NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

@ionitron-bot ionitron-bot bot added the triage label Dec 23, 2018
@paulstelzer
Copy link
Contributor

Thanks! Please also follow this issue -> #16611 - It handles some things about the back button

@paulstelzer paulstelzer added needs: investigation package: core @ionic/core package package: angular @ionic/angular package and removed triage labels Dec 24, 2018
@KevinKelchen
Copy link

I've likewise noted this inconsistency in #15428.

@liamdebeasi
Copy link
Contributor

Thanks for the issue! In Ionic 5 we fixed a significant number of the issues with the hardware back button, so this issue should no longer be present. There is still the behavior noted in #15428, but that seems unrelated to the hardware back button.

I recommend updating to the latest version of Ionic 5 to receive these fixes. I am going to close this. Thanks!

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 27, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: angular @ionic/angular package package: core @ionic/core package
Projects
None yet
Development

No branches or pull requests

4 participants