How to properly stop the application when the user minimizes the application? I have this situation. There is a splash screen and after it I request permission for location from the user and after that I request permission for notification
So, if you start the application and immediately press the Home button, the application is minimized, but in the background it continues to perform all the same actions as if it is not minimized (a dialog appears asking for the first permission, then after it the request for the second and I see all activity in the logs)
I understand that in AppDeligate you need to track when the application is minimized and put all execution on pause, but I don’t quite understand how to do it.
How to track when the program is running at the time of folding?
Or just kill all the activity and then when opening the application, check where it was stopped? But then it needs to be done for all screens and stopping the execution of all screens as it is to make in AppDeligate (as for me it’s not a completely smooth solution)
Or I do not understand how this should work?