Is there any possibility to execute some code before closing the application? (swiping the app in android or in iOs)
I want to send a last message to server before closing the application, like the user is not online anymore.
That’s a dangerous thing to rely on. What if the device is offline at that point? I think you’re better off with some sort of periodic ping and a timeout.
Yepp. This is true. I will do in this way. First I tought that making ping is not the best option but now I have to change my mind.
Thank you for answers!