-
Notifications
You must be signed in to change notification settings - Fork 614
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
Feature Request: Please add support for App.minimizeApp() #130
Comments
I wanted to solve this problem for ionic react, but unfortunately there is no At the same time I had a look at the cordova minimize plugin and the capacitor app plugin and I want to suggest the following: Capacitor app plugin has built-in support for navigating back with the hardware back button on android. See: https://github.com/ionic-team/capacitor-plugins/blob/main/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java#L45 The app plugin could be enhanced with setters to enable minimizing or closing the app, if |
@phal0r The behavior of the back button does not always depend on the webview's ability to go back, but might depend on the ability of a specific router-outlet to go back. For instance, with multiple tabs, while the web view might be able to go back "across tabs", this is not necessarily desired. This is how I usually implement it in Angular. I am not familiar with routing in ionic react, but you probably have an equivalent feature, or the ability to save this information in your store. Either way, the |
Added "minimizeApp" method to "app" plugin |
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 the plugin, please create a new issue and ensure the template is fully filled out. |
Description of the problem:
Currently we are able to use hardware back button to exit app by listening to
backButton
event and then callingApp.exitApp();
:It would be great, that if an option to Minimize App could also be added to the capacitor and we could use something like
App.minimizeApp();
There's a cordova plugin https://github.com/tomloprod/cordova-plugin-appminimize for this purpose, but I believe since its a common use case, it should be added to the Capacitor.
Affected platform
OS of the development machine
The text was updated successfully, but these errors were encountered: