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

2 thoughts on “Can’t end BackgroundTask