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
Consolidated list of Android hardware back button issues #16611
Comments
It would be nice to see some progress here as well, especially around camera use, as the camera is certainly one an often used device feature. Currently, cancelling out of camera use is still "broken" per #16505 |
If the menu is open, then it should close it instead of going back to the previous view. |
Any update on these issues? |
Is there any update on any of these issues? Are they in progress? We're already in rc2... |
I was expecting the FWIW, I posted a comment here outlining issues our team has had with |
Is this issue being addressed? We're already in production, and there are still problems with this, in particularly with the web app/pwa |
this is so important issue, simply any overlay(alert/popover/modal/actionsheet/etc) should close when any back button clicked (browser back/android back button) i think it's simple in the apps but in the web/pwa will be more difficult because we should work with the history state of the browser so push a new state when an overlay open and make back to remove the state when the overlay is close i already made a complicated code to achieve this behavior in ionic 3 i hope u can fix this soon |
I agree with the UX of the browser/Android back button dismissing a modal. If a modal was full-screen, for example, the user would probably expect it to work like a routed Component in that it "goes back to what was showing before"/dismisses. At the same time, I think we'd want to be careful about an overlay's relationship to the browser history. For example, if the history state was modified, how would that affect the Angular router with a Also, I would not expect that overlays remain in the browser history stack. Imagine using browser back/forward and navigating to an entry in the history stack for an overlay. I would not expect the overlay to somehow re-launch, with its preserved state no less, nor would I expect the back/forward action to appear to do nothing which would probably make it feel broken and confusing to users. Not modifying the browser history is actually one of the reasons our team has just migrated several Page Components to modals. There's a lot involved here and just saying we'll want to carefully think about the various contexts and use cases to guide the behavior changes that are planned. 🙂 |
mmm so there's various needs. so i think to make all the need cases, must add some behavior as option. and i think using a hash fragment in overlays will prevent the expect of re-launch or feel broken, because no one will expect a hash to do some thing like launch some thing or do some thing important so making an option to add this behavior to the overlays will achieve all the need in my opinion :) also i think some people will like if they can make a modal with a path (with route), so if the modal open from a context inside the app will open as modal as normal and change the url to it's route, and if it open from the url it should open as a page. so simply we can open component as modal or as page. |
i think the easiest way to do so is using multiple router outlets. so we can use a "popup" outlet as described here: https://angular.io/guide/router#displaying-multiple-routes-in-named-outlets |
Thanks , Hope in next update we will got this issue solved , but please do it 1st , i have to publish my apps :) |
Also add rootNev button like ionic 3 , when we use any kind of nav function , the hide the menu bar |
We've also noticed that the hardware back button on Android behaves differently than the browser back button, especially when using |
Is there any news on this? Beta release of our app revealed this at the number one issue for android users. So before we can do a version 1 release we would like this to be fixed |
Hi everyone, We are aware of these issues and are going to be looking into them now. We are currently prioritizing these issues and hope to have more updates to share soon. We appreciate your patience as we work through these issues. |
Thanks liamdebeasi , |
it's important issue and we except to solve this soon but after 4 month and updates that not solve |
@liamdebeasi, |
Still waiting for a solution. |
Any update? This is critical issue to be solved. Withoud this many apps are going to stay in ionic 3. |
I am locking this thread so we don't get too off topic. I am still working on these issues and will post here when I have more to share. We aren't forgetting about you, just trying to make sure this all gets taken care of properly 🙂 For any new bugs please open a Bug Report, and I will add them here. |
Hi! Any update on these issues? Particulary this one |
This is my workaround for a PWA: https://github.com/tanoabeleyra/ionic-back-button-workaround/commit/77aa0ea57297ec2ff898ba90f87d3264d34c4df3 Back button does pop or closes any overlay (alert, modal, picker, etc.). |
Hi team,
Please update the current status. Lack of proper solution really affects
lots of projects.
…On Thu 18 Jul, 2019, 22:16 Tano Abeleyra, ***@***.***> wrote:
This is my workaround for a PWA:
***@***.***
<tanoabeleyra/ionic-back-button-workaround@77aa0ea>
Back button does pop or closes any overlay (alert, modal, picker, etc.).
I just need to fix the back button not closing the app, if anyone knows
how to do it I would really appreciate some help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16611>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJSH6KMZIA6QDKJKEIDP75LQACM6NANCNFSM4GI2DUUQ>
.
|
I think ionic loss his popularity for its internal debag issue .. we got ionic 5.x but still app closing issue not fixed . if the android user can't close the app then why they use this platform? I am really scared .. maybe my clients are looking for a new developer for their project ... |
Hi everyone, Wanted to provide an update here. We are still committed to resolving these issues. Because we cannot cancel/prevent a back button event and because we have multiple navigation stacks interacting via different frameworks, developing solutions to these issues can take time due to the complexity of some of these tasks as well as writing tests to ensure functionality does not break in the future. Regarding @rony53's comment about us closing the issue due to Ionic 5: I think you are confusing the Ionic CLI for the Ionic Framework, which are two different things. The CLI has released a version 5.0, but the Framework has not: https://ionicframework.com/blog/ionic-cli-v5-brings-react-beta-support/. Additionally, as this issue is still open, we have not closed it nor have we forgotten about this issue. We’ve been focused on getting Ionic 4.6.0 out that introduced some really great performance improvements due to the Stencil One upgrade. Now that Ionic 4.6 has been released, we are looking to loop back to some of these issues. We hope to have more updates regarding these issues soon. Additionally, we absolutely welcome community PRs and would love any assistance in getting this issues resolved. Thanks! |
Hi @liamdebeasi, that's great to hear. I really hope you can fix this because it's critical, we can't deliver an Android app where the back button doesn't work as expected. I made a workaround for Angular but I would prefer a built-in solution. Anyway, my workaround doesn't yet solve the back button not closing the app, which is annoying. |
It's indeed a very critical issue. We have the same problem: we can't release our app until this functionality is fixed. Hopefully this is ready soon, but anyways, it's great to hear you're on it, @liamdebeasi! |
Hi team,
Could you please confirm which is the stable version of ionic?
…On Fri 19 Jul, 2019, 04:19 Zerok, ***@***.***> wrote:
It's indeed a very critical issue. We have the same problem: we can't
release our app until this functionality is fixed. Hopefully this is ready
soon, but anyways, it's great to hear you're on it, @liamdebeasi
<https://github.com/liamdebeasi>!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16611>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJSH6KJYEBOLFIZHNBLVR2DQADXN3ANCNFSM4GI2DUUQ>
.
|
It comes everyday in mind: It's a waste of time to use Ionic Framework - lot's of bugs lot's of issues. And it seems Ionic team have not that much potential to manage issues and resolve on time. They release things before prior testing and that effect our projects. We have 3-4 products in market - using Ionic from year 2016. We have also taken Ionic paid version Ionic Hub, many more still facing issues in basic things navigation back button, production build etc. etc. listed in above comments by others ( #16611 (comment) ) I request Ionic team to make serious changes in their development strategy and make things better soon because developers are now dependent on your technologies from long time and have no option to move back to other technologies (because project size and team education has already built). That cost much in time and money. Before Ionic seems easy in development (saves time and money) now it becomes double complicated it only ends to frustration. Thanks/Hope Ionic Team. |
i think ionic team should focus on angular is enough |
really it's take long time |
Hi everyone, I wanted to provide an update regarding the status of this issue. Now that Ionic Framework v5.1 has been released, we will be closing out this issue. Most issues have been resolved, but some have limitations that prevent us from being able to resolve them. Here is a breakdown of the issues listed in the original post: Capacitor/Cordova Issues
This is now possible in Ionic Framework v5.1. Please see the Hardware Back Button Documentation for an example of how to exit the app.
Exiting the app is now possible in Ionic Framework v5.1. Please see the Hardware Back Button Documentation for an example of how to exit the app. Additionally, you can use an
This is not 100% possible for reasons explained at the end of this comment. We have made the behavior as consistent as possible where appropriate.
This was resolved several versions ago.
This is the expected behavior. The hardware back button works within the context of your application’s navigation stack. Using
This is fixed in Ionic Framework v5.1. Please see the Hardware Back Button Documentation for an example of how to use priorities and call multiple back button handlers. Browser Issues Many of the browser hardware back button issues are not resolvable at this time. Running in a Capacitor/Cordova application provides developers with additional tools to control the hardware back button functionality that does not exist in a web browser. For example, the Some developers have requested that users be able to dismiss a modal or close the menu when pressing the hardware back button. While this is possible in a Capacitor/Cordova application via the For complete hardware back button support, we recommend using Capacitor or Cordova. We have also released brand new hardware back button docs: https://ionicframework.com/docs/developing/hardware-back-button. They contain examples of common things developers have asked us how to do over the years. Please feel free to open an issue on the Ionic Docs Repo if you have any suggestions on how we can improve these docs. Moving forward, please open a new issue for any additional hardware back button issues you run into. Thank you! |
Describe the Bug
This is a list of functionality that must work with the Android hardware back button. I want to try and keep a list of them in one place so we can finally verify the hardware back button works correctly as this has been problematic since v2.
The back button here refers to the hardware back button.
Web Browser
Cordova/Capacitor
Back button behaviour should be consistent between web and app (as per web list above)#17589 back button not working with ion-button and href to pageExpected Behavior
Ultimately the user should not need to have to intervene with events, subscriptions or HostListener to handle back button navigation.
The text was updated successfully, but these errors were encountered: