How to free an app when clicking on the home button

  

I have a problem with one of my apps. When I open my app and just go through it. close it with my home button of the phone and reopen the app I get an access violation at address error. This error only appears on code where the component TMSFMXCheckGroup is used. Now I have some ideas to solve it but don’t know if they are good and works.

Just fully close the app when the app closes via the home button so the app opens next time with a clear cache.

I want to empty all CheckGroups so only the checkgroups start fresh.

when the app closes via the home button next time you open it begins on the home page of the app.

I don’t know if one of these solutions works and how I implement this in my code.
If there is another solution that’s better let me know!
Thanks in advance for all the help.
I’ve looked at the other questions and the answers but with no result.
The solutions they had didn’t work for me because my app is on ios and android so I need a solution for both.

Comments are closed.