Get Location every 10 Minutes when App is terminated/in Background


I need to get the Location of the User every 10 Minutes, then execute some Code with these Locations, even if the App isn't started/terminated or in Background.

I have no Idea how i do this. I found many Tutorials on the Internet, but no ones helped me right. It is even possible?



Please post this question in the Apple developer forums as it is not related to the Swift language.