firebase-ios-sdk: Can't end BackgroundTask

Describe your environment

  • Xcode version: 11.3
  • Firebase SDK version: 6.14.0
  • Firebase Component: FirebaseAnalytics
  • Component version: 6.1.7

Describe the problem

Can't end BackgroundTask: no background task exists with identifier 32 (0x20), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

Steps to reproduce:

  1. Set symbolic breakpoint at UIApplicationEndBackgroundTaskError
  2. Lock simulator with Command-L
  3. Notice breakpoint hit

Relevant Code:

- (void)appWillBackground:(GDTCORApplication *)app {

is called twice, second time it causes the failure

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 28 (10 by maintainers)

Most upvoted comments

I just confirmed with Apple that the bug is fixed in iOS 13.4 beta 1 and updated Open Radar as Fixed: http://openradar.appspot.com/radar?id=4974489829900288

iOS Simulator Version 11.4 (921.4)
SimulatorKit 581.7
CoreSimulator 704.8

Xcode Version 11.4 beta (11N111s)

And this issue is no longer reproducible for me on iOS 13.4 beta 1. Thank you

Filed a ~radar~ feedback to Apple (FB7568110).