Hi, I am developing a program for recording geotracks. In order for the track to continue recording even when the program is in the background, I set locationManager.allowsBackgroundLocationUpdates = true. In Backgroung Modes, I also set Location updates.
This works - the track continues recording in the background even when the device is locked. However, sometimes the program will automatically terminate in the background. This can happen in a few minutes or in a few hours. I suspect that the program is forcibly terminated by iOS.
How can i be guaranteed to get rid of this?