I want to send data to my database with a function and I need to do it when the application shut down (not when it's on background). Is there a clean way to do this?
EDIT : I'm looking for a solution that work on both IOS and Android
I want to send data to my database with a function and I need to do it when the application shut down (not when it's on background). Is there a clean way to do this?
EDIT : I'm looking for a solution that work on both IOS and Android