The task is to send the user's location to the server every X seconds, the application works perfectly, but in the background after a few minutes, it goes to sleep and stops sending requests.
In Info.plist added:
Privacy - Location Always Usage Description,
Application does not run in background = NO
Required background modes =
App registers for location updates, App downloads content in response to push notifications, App provides Voice over IP services. In Capabilities added Background Models: Location updates and VOIP.
But nothing helps