cancel
Showing results for 
Search instead for 
Did you mean: 

[Quest] Handling client logout events on quitting the application

01JacksonL
Honored Guest
Hi there,

I have a client-server model setup where the Quest is a client, connected to an external dedicated server via an IP connection. 
I can force the Quest to handle a logout by interacting with a UI or pressing a button however I'm wondering if there's a way to automatically have the client disconnect from the server when the application is closed using the Quest's external quit menu? (Pressing the Oculus button and choosing 'Quit') 

The issue I'm experiencing is that the Quest is still connected to the server even after the application has closed. This results in:
- The client's pawn still visible and inactive on the server
- The client unable to rejoin the session as it's still technically connected.

All help is welcome and appreciated.

Thanks,
Jackson.
1 REPLY 1

CosmicStud
Honored Guest
I'd like to know this as well. There are no methods to use as callbacks for the application to close. OnDestroy barely makes it out of the force close approach Oculus has currently. Any suggestions? *On Unity