Skip to content

iOS 13 kept killing app instance after app entering background. #3759

@su3

Description

@su3

[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:

  1. 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).

  2. Put app into background (swipe up or press Home button) and turn off phone screen for several minutes.

  3. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions