title: ios - significant location change, and no Internet
body: <p>I am using Significant Location Changes, and this is working fine. I then call a web api, and pass location data to this.</p>
  
  <p>However, when I am not connected to the Internet, it cannot send the message.</p>
  
  <p>How do I get around this?
  I have tried putting a sleep into a recursive send routine.</p>
  
  <pre><code>dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
          [NSThread sleepForTimeInterval:5.0f];
          [self postURL :post :function];
      });
  </code></pre>
  
  <p>This works fine with the app in the foreground. It cannot send the message but will keep retrying, when the Internet is available it then sends the message, but when it is in the background it will call the postURL only once, the first time around the function.</p>
  
  <p>How can I get around this? Or is there a better way to get background notifications when the Internet is lost, and reconnected.</p>