title: Can't end BackgroundTask: no background task exists with identifier or it may have already been ended. Break in UIApplicationEndBackgroundTaskError()
body: <p>I don't know why but this error occurs after reset the app - on first launch everything is working but if close and start the app once again it stucks on splash screen and on the Xcode I got this error:</p>
  
  <pre><code>Can't end BackgroundTask: no background task exists with identifier %lu (0x%lx), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug
  </code></pre>
  
  <p>Image attached:</p>
  
  <p><a href="https://i.stack.imgur.com/QvTAn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QvTAn.png" alt="enter image description here"></a></p>
  
  <p>I am using cordova background geolocation and cordova background mode, but the geolocation is still not set in the first screen part and the background mode is maybe causes the problem?</p>
  
  <p>In Xcode I have enabled like the following image: </p>
  
  <p><a href="https://i.stack.imgur.com/s2nYD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2nYD.png" alt="enter image description here"></a></p>
  
  <p>I have just updated the Xcode version to the newest from AppStore on Mac.</p>