title: want to call web services method in every 5 to 10 minutes while app is not running ( in background state or even in running state ) in ios objective c
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>I have referred to many tutorials <a href="https://code.tutsplus.com/tutorials/ios-7-sdk-working-with-background-fetch--mobile-20520" rel="nofollow noreferrer">Like this</a> and methods <a href="https://stackoverflow.com/questions/33140427/continue-webservice-call-after-transition-from-foreground-to-background-in-ios-o">like this</a> and <a href="https://stackoverflow.com/questions/16709869/how-to-call-a-method-every-nth-minute-while-app-is-in-background">this</a>  -- <a href="http://blog.dkaminsky.info/2013/01/27/keep-your-ios-app-running-in-background-forever/" rel="nofollow noreferrer">This</a>  -- <a href="http://hayageek.com/ios-long-running-background-task/" rel="nofollow noreferrer">This</a> to implement it, but could not come up with the method or way, or those codes are way too old.</p>
  
  <p>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.</p>
  
  <p>I am using xib - Objective-C - Xcode 8.3.</p>