I have made an app that gets the user location and stores in local servers using web service and whenever user location data are required can be fetched by calling web service.
Now I want to add the functionality in such a way that when app is closed, in background state, or even in running state the method for fetching user location should call and keep on calling it in 5 to 10 minutes time interval and can call web services called in that code block.
I have referred to many tutorials Like this and methods like this and this -- This -- This to implement it, but could not come up with the method or way, or those codes are way too old.
So, if anyone knows how to implement these functionality, please guide me through it. I am new in performing background services. Let me know ,where I have to look and what methods should I have to add in it.
I am using xib - Objective-C - Xcode 8.3.