Skip to content

[feat] keep alive when simulated app gets closed #5855

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

Closed
JonasKruckenberg opened this issue Dec 18, 2022 · 0 comments
Closed

[feat] keep alive when simulated app gets closed #5855

JonasKruckenberg opened this issue Dec 18, 2022 · 0 comments

Comments

@JonasKruckenberg
Copy link
Member

Describe the problem

When running Tauri inside the Xcode simulator (and I assume when running on a real device too) quitting the app quits the watcher and development server too. Restarting the app will just result in a blank screen bc the app remains in the simulators dock, but there won't be a dev-server backing the app anymore.

Describe the solution you'd like

This makes sense as it mirrors how Tauri works on the desktop, I would argue however that the lifetime of the watcher and development server should be tied to the lifetime of the simulator instead of the app (if that is technically possible). This has a few reasons:

  1. The app icon remains in the simulators dock, intuitively a user assumes they can just click that icon again to re-launch the app
  2. On mobile its common the kill an app to reset it's state to the initial one

Alternatives considered

No response

Additional context

No response

@amrbashir amrbashir added the scope: cli.rs The tauri-cli rust crate label Dec 19, 2022
lucasfernog added a commit to tauri-apps/cargo-mobile2 that referenced this issue Dec 23, 2022

Unverified

This user has not yet uploaded their public signing key.
lucasfernog added a commit that referenced this issue Dec 23, 2022

Unverified

This user has not yet uploaded their public signing key.
wusyong pushed a commit to tauri-apps/cargo-mobile2 that referenced this issue Dec 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
* feat(apple): show app logs, simulator noninteractive mode 

Ref tauri-apps/tauri#5855

* fix build
lucasfernog added a commit that referenced this issue Dec 27, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants