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

App doesn't cleanly shutdown on quit #391

Closed
ara4n opened this issue Dec 23, 2022 · 1 comment
Closed

App doesn't cleanly shutdown on quit #391

ara4n opened this issue Dec 23, 2022 · 1 comment
Labels
Z-BBQ-Beta Required for ElementX - BBQ - Beta

Comments

@ara4n
Copy link
Member

ara4n commented Dec 23, 2022

If run on macOS, Cmd-Q doesn't quit the app. Eventually it gets terminated in the bg by the OS:

2022-12-23 14:41:12.997720+0000 ElementX[79926:3533289] [BackgroundTask] Background Task 71 ("SuspendApp: EAD5BC66-AC64-4E7E-82F1-5060591B698C"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
2022-12-23 14:41:13.014946+0000 ElementX[79926:3533289] [Lifecycle] Background tasks took too long to complete. Moving to next phase of termination.
2022-12-23 14:41:13.019732+0000 ElementX[79926:3533289] AppCoordinator.isSuspended():30 didSet to: true
@stefanceriu stefanceriu added the Z-BBQ-Beta Required for ElementX - BBQ - Beta label Jan 5, 2023
@pixlwave
Copy link
Member

I'm going to close this issue in favour of #438 regarding the background task.

Its worth pointing out though that running iOS apps on Apple Silicon Macs have a different lifecycle to macOS apps. Quitting the app does the equivalent of backgrounding it on iOS as the app isn't aware of the normal macOS app lifecycle. This would be one of the advantages of switching to Catalyst for the Mac app I guess.

@pixlwave pixlwave removed their assignment Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-BBQ-Beta Required for ElementX - BBQ - Beta
Projects
None yet
Development

No branches or pull requests

3 participants