-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
[REQUIRED] Step 2: Describe your environment
Xcode version: 11 Beta 7
iOS: 13.1 (iOS 13 Beta 8 has the same issue)
Firebase SDK version: 6.7.0
Firebase Component:
Firebase: 6.7.0
Firebase/Analytics
Use cocopod like this:
pod 'Fabric'
pod 'Crashlytics'
pod 'Firebase/Analytics' '6.7.0'
[REQUIRED] Step 3: Describe the problem
iOS (13.1) kept killing app instance after app entering background.
Steps to reproduce:
-
Integrate Firebase Analytics into app like:
FirebaseApp.configure()
Fabric.sharedSDK().debug = false
Fabric.with([Crashlytics.self])... Analytics.logEvent...
Build and run the app (detach XCode if it's started from XCode).
-
Put app into background (swipe up or press Home button) and turn off phone screen for several minutes.
-
Wake up the phone and tap the app icon to bring the app to foreground:
Expected:
The app is recovered from previous suspended state.
Got:
The previous app instance was destroyed by iOS and a new app instance is created.
If we remove all Firebase pods as well as the code referencing them from our project, we got expected results - the app is able to survive from background state.