iOS 12 terminates apps in the background withinn 48 HRS when location sending to server

Starting from iOS 12 the CLLocationManager doesn't run endless anymore in the background. The app get's terminated without a crashlog at random times. This was working fine before iOS 12.


The demo app just launches an CLLocationManager and keep this running in the background. While running on the background we keep track of it by logging it. The problem is that the app get terminated by iOS. The demo app is created to demonstrate this problem.

Steps to reproduce

  1. Run the app on the device
  2. Grand access to locationmanager
  3. Put the app to the background
  4. Wait for 1-48hours

Result:

The app is terminated

App is terminated without any reason after random time.Expected result:

The app is still running

Replies

Supposed to be fixed in 12.2. What iOS version are you running?


Thread: https://forums.developer.apple.com/thread/111567

I have checked same issue on iOS 12.1 . But it is still open?


Could you please give me the proper issue explanation? Why this type of error ?