Autosave ??

Hello, I have a question. I am trying to find a solution to have autosave after the player closed the application. I tried literally everything Application.Quit () / focus / pause but nothings seems to work I did the various tests and with buttons everything works correctly but what I want to do is save the game after the player closes the application or the pauses. I have tried various tests in this regard something works but not correctly. for example by turning off the device the game is saved but when you close the application nothing happens and it starts all over again.

P.S. i’m using Android platform

I’ll move this to android then.