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

Closing the game on Android doesn't properly disconnect the client #3119

Open
SubatomicPlanets opened this issue Nov 9, 2024 · 3 comments
Open
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report

Comments

@SubatomicPlanets
Copy link

Description

On Android, when quitting the app, the server and other players don't get notified. Eventually it will time out due to heartbeats, but that is not ideal. When quitting the game on other platforms, such as Windows, it correctly notifies the server, and the player prefab gets destroyed.

Environment

  • OS: Android
  • Unity Version: 6000.0.25f1
  • Netcode Version: 2.1.1

Additional Context

Specifically tested on:

  • Samsung galaxy J5 2017
  • Meta quest 2
@SubatomicPlanets SubatomicPlanets added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report labels Nov 9, 2024
@Moe-Baker
Copy link

As far as I know, this is a limitation of mobile operation systems, android will instantly freeze the app when put in the background and will terminate the process nearly instantly as well when the user closes the app.
I'm interested if there is a workaround for this tho.

@StephenHodgson
Copy link

StephenHodgson commented Dec 3, 2024

We're also seeing this, which causes players to persist in the lobby indefinitely and blocks them from rejoining for some time.

Meta Quest 3

@aondw
Copy link

aondw commented Dec 9, 2024

Would love to have a solution/workaround for this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report
Projects
None yet
Development

No branches or pull requests

4 participants