Hello people,
When the app is open it saves perfectly,
I also wanted to save with a closed application.