I have an SKScene
that displays the players that joined the current room. If any of those players leaves the room (by clicking on the Leave button) their players list will be updated.
But if I close the app from one of the players, that specific player remains in the room. I want to call my leaveRoom
function from the applicationWillTerminate
so all the data will work fine. Is it possible? How can I resolve this issue?