question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: back button android closes app

See original GitHub issue

Bug Report

Ionic version:

[ ] 4.x [x] 5.x

Current behavior:

I am not 100% sure if this is a Capacitor or Ionic Angular Issue. If i navigate to a Page on Android and then press the Back button, the App Does close <ion-button [routerLink] ...

Expected behavior:

The App should Navigate Back to the Page before. The App should only close then there is no parent Page left.

Steps to reproduce:

Latest Capacitor / Ionic Angular Project. Add a Page and a button to navigate to the page. Install on Android and click the button press then the Android Native Back button.

Other information: Capacitor Version 3 Stable. The Latest Ionic Version (5.6.7)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
danielehrhardtcommented, May 24, 2021

yes it does work 🙈😇👌

0reactions
ionitron-bot[bot]commented, Jun 23, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android] App is crashing after closing app via back button on ...
Now I'm pressing the back button to close the app. If I'm now restarting the app by pressing the app icon the application...
Read more >
How To Fix Back Button App Keeps Crashing Problem ...
BackButton #Fix # Crashing #ProblemHello Friends today, In this Tutorial, i will show you how to fix How To Fix Back Button App...
Read more >
Prevent back button from closing the app - Flutter Clutter
Flutter apps exit by default once the user taps the back button on the first screen. Here's how to override this behavior and...
Read more >
Back Button/Gesture does not close apps anymore - Reddit
I just noticed this, because the ViewModels in one of my apps were not correctly cleared. That's a huge problem in my opinion....
Read more >
App closed when pressing back button from activity results intent
After a lot of struggle I found that if we press back button with out selecting any file the activity results will returns...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found