flurry/flurry-ios-sdk

UIApplication.endBackgroundTask(_:) Risk

Closed this issue · 3 comments

Describe the bug
[BackgroundTask] Background Task 1 ("Called by Flurry_iOS_SDK, from -[FlurryDataSenderBase registerNewTask:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.

This Bug is About
Please choose the closest item by replacing [ ] with [x].

  • Integration
  • Analytics
  • Ads
  • Messaging/Push
  • IAP
  • Remote Configuration
  • Flurry Website/Dashboard
  • Other

Platform
Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

  • iOS
  • tvOS
  • WatchOS

Environment
Please tell us the versions of Flurry SDK, XCode, and iOS you are using.

  • Flurry SDK: pod 'Flurry-iOS-SDK/FlurrySDK', '~> 11.1.1'
  • XCode:Version 12.0 (12A7209)
  • iOS:14.0

To Reproduce
Steps to reproduce the behavior:

  1. Turn app to background sometimes
  2. Turn app to foreground
  3. The XCode console will report this warnning

Additional context
Are you using Flurry Push/Messaging? No
(iOS) Are you using CocoaPods or manual binary integration? We use CocoaPods

@StartingZhou we made the fix for this issue and it will be out with the next GA release in March.

@StartingZhou Please upgrade to v11.2.1 for the fix of this risk

We just had updated the flurry version to v11.2.1 last year, and for now this issue no more appear, thank you very much