4

I am working on an app where my app need to get location in background and update it to the server. It was working fine for earlier iOS versions. But after release of iOS 13, my app is getting killed in the background. I have checked so many workarounds but have found any feasible solution. It is having "Background Processing" capability.

Any help is most welcome!!!

Kirti Parghi
  • 1,142
  • 3
  • 14
  • 31
  • If this is happening on iOS 13.2 it's not your fault. This version of iOS has a bug that causes the system to aggressively kill apps in the background. Try on iOS 13.3 or versions before 13.2 – donnywals Nov 08 '19 at 13:06
  • @donnywals Did you check on iOS 13.3 that background apps are not getting killed by os? Just need to confirm. – Kirti Parghi Nov 13 '19 at 17:19
  • @KirtiParghi, I have checked in iOS 13.3, it still kills in background after sometimes. Is there any solution you got so far ? – Nitesh Jan 23 '20 at 17:55
  • my app also gets killed in background if I spend more than 30 seconds in background, I also checked with latest iOS13.3 version too – shaqir saiyed Mar 13 '20 at 12:51
  • @shaqirsaiyed have you found any solution ? i am facing same issue too. – Lovepreet Sandhu Dec 07 '22 at 11:30

3 Answers3

0

Only Music Apps or Downloader form internet apps ("Completing a Long-Running Task in the Background") will remain in the background all other apps will be killed after some time.

Awais Mobeen
  • 733
  • 11
  • 19
0

https://support.apple.com/en-us/HT210393#1322 - [iOS 13.2.2] Fixes an issue that could cause apps to quit unexpectedly when running in the background

slamor
  • 3,355
  • 2
  • 14
  • 13
0

Crash may be due to a background task leak. In my application, some SDKs don't use the background task correctly. Because it was killed by the watchdog, debugging will not appear, you can print beginBackgroundTask and endBackgroundTask during debugging. If there is a mismatch, a leak occurs.

I wrote a category to hook background task related methods to avoid leaking being killed by watchdog:https://github.com/ruanjx/MPIBackgroundTaskProtection

More information about background task:https://medium.com/swlh/handling-background-tasks-in-ios-13-67f717d94b3d

BearRuan
  • 11
  • 1