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

on_exit handler and exit() for android. #2419

Closed
greenshe11 opened this issue Feb 23, 2024 · 2 comments
Closed

on_exit handler and exit() for android. #2419

greenshe11 opened this issue Feb 23, 2024 · 2 comments
Labels
enhancement New features, or improvements to existing features.

Comments

@greenshe11
Copy link

What is the problem or limitation you are having?

As far as im aware of, currently, using the back button for the android immediately closes the app. The on_exit handler doesnt work. Are there any work arounds we could use at the moment? if its possible.

As things are now, the simplicity is alright, but I feel like this functionality is necessary.

Describe the solution you'd like

Exactly how on_exit handler and exit() method would work in windows.
It would be helpful to have an onDestroy handler for the app, as the 'Back' button serves as a core and standard navigation control for android.

Describe alternatives you've considered

None.

Additional context

I would like to use it for navigation purposes (more specifically, changing to previous screens) and saving operations (autosave changes).

@greenshe11 greenshe11 added the enhancement New features, or improvements to existing features. label Feb 23, 2024
@mhsmith
Copy link
Member

mhsmith commented Feb 23, 2024

Unfortunately there's no easy workaround at the moment. Please subscribe to #1623 for future updates.

@mhsmith mhsmith closed this as completed Feb 23, 2024
@greenshe11
Copy link
Author

I see. thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

2 participants