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

hardware back button doesnt work #17589

Closed
Rainson12 opened this issue Feb 22, 2019 · 4 comments
Closed

hardware back button doesnt work #17589

Rainson12 opened this issue Feb 22, 2019 · 4 comments
Labels

Comments

@Rainson12
Copy link

Bug Report

Ionic version:
[x] 4.0.2

Current behavior:
The hardware back is pressed nothing happens.

Expected behavior:
The navigation should go back one item in the history

Steps to reproduce:

  • Create a new ionic app using ionic cli.
  • Add new page using ionic cli
  • Add ion-button to the home page and add href tag and refer to the newly created page
  • use Back button

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.10.3 (C:\Users\dev\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.2
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.2.4
   @ionic/angular-toolkit        : 1.4.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 4 other plugins)

System:

   Android SDK Tools : 26.1.1 (C:\Users\dev\AppData\Local\Android\Sdk)
   NodeJS            : v10.15.1 (C:\Program Files\nodejs\node.exe)
   npm               : 6.4.1
   OS                : Windows 10
@ionitron-bot ionitron-bot bot added the triage label Feb 22, 2019
@Rainson12
Copy link
Author

Rainson12 commented Feb 22, 2019

I have figured out that outlet.canGoBack() is always false. Why is that?

I figured out that when navigating using a button "href" doesnt work while "routerLink" works. Is that normal?

@dylanvdmerwe
Copy link
Contributor

#16611

@liamdebeasi
Copy link
Contributor

Hi there,

Thanks for the issue! I’ve added this to issue #16611 to keep track of. We’re going to close out the individual issues and address all of the hardware back button issues at once. We’re not forgetting about your issue, just trying to keep them all together. 🙂

Thanks for using Ionic!

@ionitron-bot
Copy link

ionitron-bot bot commented Mar 30, 2019

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 Mar 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants