firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.67k stars 1.49k forks source link

Data leaks after enabling and then disabling Analytics #5837

Closed uson1x closed 3 years ago

uson1x commented 4 years ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

In our app we want to dynamically turn on/off Firebase Analytics. Some of our clients don't want any information to be sent to third-parties. Some clients are ok with that. And we want to keep Firebase Analytics enabled for those.

We tried to implement such cut-off disabling functionality. But in our tests, if you first configure FIRApp+enable analytics and then disable+delete the FIRApp, some information is still sent to firebaselogging-pa.googleapis.com/app-measurement.com.

Is that a bug? Is there more reliable way to dynamically enable/disable Firebase/Analytics?

Thank you!

Steps to reproduce:

  1. Enable Analytics and configure the app

    Analytics.setAnalyticsCollectionEnabled(true)
    FirebaseApp.configure()
    FirebaseApp.app()?.isDataCollectionDefaultEnabled = true
  2. Disable analytics and delete the app

    Analytics.resetAnalyticsData()
    Analytics.setAnalyticsCollectionEnabled(false)
    FirebaseApp.app()?.isDataCollectionDefaultEnabled = false
    FirebaseApp.app()?.delete({ (success) in  })
  3. Go to home screen.

  4. In network traffic I see requests like GET https://app-measurement.com/config/app/1:<some_id>:ios:<some_id>?platform=ios&app_instance_id=<some_id>&gmp_version=60600 HTTP/2.0 or POST https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog HTTP/2.0 with a long body.

We also have FirebaseScreenReportingEnabled: NO set in our app's .plist file.

google-oss-bot commented 4 years ago

I found a few problems with this issue:

ryanwilson commented 4 years ago

Thanks for the report - we're looking into this and will get back to you as soon as we find out what's going on.

baolocdo commented 4 years ago

Can you please provide some debug log?

uson1x commented 4 years ago

Sure, here it is:

First, app was launched without configuring Firebase, called these two methods

Analytics.resetAnalyticsData()
Analytics.setAnalyticsCollectionEnabled(false)

Logs:

2020-06-18 11:07:02.065384+0300 edagsordenqa[13088:11710951]  - <AppMeasurement>[I-ACS036001] Analytics screen reporting is disabled. UIViewController transitions will not be logged.
2020-06-18 11:08:04.147185+0300 edagsordenqa[13088:11710949]  - <AppMeasurement>[I-ACS024000] Debug mode is on
2020-06-18 11:08:04.148357+0300 edagsordenqa[13088:11710949]  - <AppMeasurement>[I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2020-06-18 11:08:04.151766+0300 edagsordenqa[13088:11711002]  - <AppMeasurement>[I-ACS023147] Google Analytics for Firebase has not been created. Please, configure Firebase by calling [FIRApp configure]

Then, I logged out, logged into account with enabled analytics and called these methods

Analytics.setAnalyticsCollectionEnabled(true)
FirebaseApp.configure()
FirebaseApp.app()?.isDataCollectionDefaultEnabled = true

Logs

2020-06-18 11:08:53.604353+0300 edagsordenqa[13088:11710932] [Firebase/Crashlytics] Version 4.1.1
2020-06-18 11:08:53.725598+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Core][I-COR000001] Configuring the default app.
2020-06-18 11:08:53.725639+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Core][I-COR000031] Data Collection flag is enabled in user defaults.
2020-06-18 11:08:53.725657+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-06-18 11:08:53.725902+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics] Running on iPad6,3, 13.4.0 (17E255)
2020-06-18 11:08:53.726044+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Crashlytics][I-CLS000000] Root: /var/mobile/Containers/Data/Application/A4B53F1A-8619-45E5-A32E-1FDE7EE82640/Library/Caches/com.crashlytics.data/com.firstagenda.edagsordenqa
2020-06-18 11:08:53.726115+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports:Event] Registered Firebase Analytics event listener
2020-06-18 11:08:53.726278+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Crashlytics][I-CLS000000] Automatic data collection is enabled.
2020-06-18 11:08:53.726321+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Crashlytics][I-CLS000000] Unsent reports will be uploaded at startup
2020-06-18 11:08:53.726436+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Core][I-COR000034] Explicitly enabled data collection flag.
2020-06-18 11:08:53.726473+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-06-18 11:08:53.727519+0300 edagsordenqa[13088:11710948] 6.26.0 - <AppMeasurement>[I-ACS023147] Google Analytics for Firebase has not been created. Please, configure Firebase by calling [FIRApp configure]
2020-06-18 11:08:53.730486+0300 edagsordenqa[13088:11710948] 6.26.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-06-18 11:08:53.730522+0300 edagsordenqa[13088:11710948] 6.26.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-06-18 11:08:53.730548+0300 edagsordenqa[13088:11710948] 6.26.0 - [GULReachability][I-REA902004] Network status has changed. Code:1, status:Disconnected
2020-06-18 11:08:53.730910+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60600000 started
2020-06-18 11:08:53.731228+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-06-18 11:08:53.731584+0300 edagsordenqa[13088:11710948] 6.26.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2020-06-18 11:08:53.731632+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023009] Debug logging enabled
2020-06-18 11:08:53.731702+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023207] To enable verbose logging set the following application argument: -FIRAnalyticsVerboseLoggingEnabled (see http://goo.gl/RfcP7r)
2020-06-18 11:08:53.733113+0300 edagsordenqa[13088:11711423] 6.26.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
2020-06-18 11:08:53.734782+0300 edagsordenqa[13088:11711373] 6.26.0 - [Firebase/Analytics][I-ACS025037] Failed to reset Analytics data
2020-06-18 11:08:53.735751+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023171] Resetting App Measurement data
2020-06-18 11:08:53.742329+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-06-18 11:08:53.750514+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 10993.91170108318
2020-06-18 11:08:54.244758+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-06-18 11:08:54.247393+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS029017] Configuration was not found in database. The configuration will be fetched from the network when necessary
2020-06-18 11:08:54.247524+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023016] Analytics is ready to receive events
2020-06-18 11:08:54.283291+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: first_open_after_install (_fi), 1
2020-06-18 11:08:54.300075+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: first_open_time (_fot), 1592470800000
2020-06-18 11:08:54.304599+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, first_open (_f), {
    ga_event_origin (_o) = auto;
    previous_first_open_count (_pfo) = 13;
    previous_gmp_app_id (_pgmp) = 1:88747951688:ios:fd429da08f8602d0;
    update_with_analytics (_uwa) = 0;
}
2020-06-18 11:08:54.309678+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: first_open (_f), {
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    previous_first_open_count (_pfo) = 13;
    previous_gmp_app_id (_pgmp) = 1:88747951688:ios:fd429da08f8602d0;
    update_with_analytics (_uwa) = 0;
}
2020-06-18 11:08:54.349186+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: first_open (_f), {
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    previous_first_open_count (_pfo) = 13;
    previous_gmp_app_id (_pgmp) = 1:88747951688:ios:fd429da08f8602d0;
    update_with_analytics (_uwa) = 0;
}
2020-06-18 11:08:54.362006+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -50.96230900287628
2020-06-18 11:08:54.379157+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: ga_session_id (_sid), 1592467682
2020-06-18 11:08:54.391084+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: ga_session_number (_sno), 1
2020-06-18 11:08:54.392749+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, session_start (_s), {
    ga_event_origin (_o) = auto;
    session_id (_sid) = 1592467682;
    session_number (_sno) = 1;
}
2020-06-18 11:08:54.394697+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) = 1592467682;
    session_number (_sno) = 1;
}
2020-06-18 11:08:54.404087+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) = 1592467682;
    session_number (_sno) = 1;
}
2020-06-18 11:08:54.417178+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:08:54.417429+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -51.01751303672791
2020-06-18 11:08:54.419769+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_event_origin (_o) = auto;
}
2020-06-18 11:08:54.421380+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:08:54.431766+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:08:54.444065+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:08:54.444479+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -51.04462504386902
2020-06-18 11:08:54.450811+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2020-06-18 11:08:54.456920+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:08:54.457160+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -51.05772399902344
2020-06-18 11:08:54.458158+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-06-18 11:08:54.458221+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-06-18 11:08:54.461354+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:08:54.461567+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -51.06220006942749
2020-06-18 11:08:54.462184+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-06-18 11:08:54.462814+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-06-18 11:08:54.462991+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:08:54.467613+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS900001] Downloading data. Host: https://app-measurement.com/config/app/1:88747951688:ios:fd429da08f8602d0?platform=ios&app_instance_id=687F11771F1342EDB3F9ED2412F68C55&gmp_version=60600
2020-06-18 11:08:54.810084+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/config/app/1:88747951688:ios:fd429da08f8602d0?platform=ios&app_instance_id=687F11771F1342EDB3F9ED2412F68C55&gmp_version=60600
2020-06-18 11:08:55.058736+0300 edagsordenqa[13088:11711423] 6.26.0 - [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1586909244956714
2020-06-18 11:08:55.071738+0300 edagsordenqa[13088:11711423] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: first_open (_f), {
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    previous_first_open_count (_pfo) = 13;
    previous_gmp_app_id (_pgmp) = 1:88747951688:ios:fd429da08f8602d0;
    update_with_analytics (_uwa) = 0;
}
2020-06-18 11:08:55.077362+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 379
2020-06-18 11:08:55.077714+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 1, 1592467682398
2020-06-18 11:08:55.090645+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) = 1592467682;
    session_number (_sno) = 1;
}
2020-06-18 11:08:55.090904+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:08:55.095283+0300 edagsordenqa[13088:11711423] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 1
2020-06-18 11:08:55.095763+0300 edagsordenqa[13088:11711423] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 1
2020-06-18 11:08:55.099519+0300 edagsordenqa[13088:11711423] 6.26.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 435
2020-06-18 11:08:55.099770+0300 edagsordenqa[13088:11711423] 6.26.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 2, 1592467682398
2020-06-18 11:08:55.119707+0300 edagsordenqa[13088:11711423] 6.26.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1592467735118, <APMPBMeasurementBatch: 0x280021620>
2020-06-18 11:08:55.128773+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-06-18 11:08:55.279596+0300 edagsordenqa[13088:11711371] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-06-18 11:08:55.386555+0300 edagsordenqa[13088:11711372] 6.26.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-06-18 11:08:55.390388+0300 edagsordenqa[13088:11711371] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -51.99181294441223
2020-06-18 11:08:55.411633+0300 edagsordenqa[13088:11711371] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled

Then I logged out.

2020-06-18 11:09:51.783211+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, ScreenView, {
    ga_event_origin (_o) = app;
    screen_name = AppSettings;
}
2020-06-18 11:09:51.790450+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = AppSettings;
}
2020-06-18 11:09:51.801447+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = AppSettings;
}
2020-06-18 11:09:51.812210+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9670000076293945
2020-06-18 11:09:52.863043+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-06-18 11:09:52.863171+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:09:52.868044+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = AppSettings;
}
2020-06-18 11:09:52.882325+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 438
2020-06-18 11:09:52.883613+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 3, 1592467791778
2020-06-18 11:09:52.897959+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1592467792897, <APMPBMeasurementBatch: 0x2800205a0>
2020-06-18 11:09:52.905083+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-06-18 11:09:53.444096+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-06-18 11:09:53.707067+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-06-18 11:09:53.711870+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.9334068298339844
2020-06-18 11:09:53.730667+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:09:54.443850+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, LogoutSelected, {
    category = AppSettings;
    ga_event_origin (_o) = app;
    value = 0;
}
2020-06-18 11:09:54.456792+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: LogoutSelected, {
    category = AppSettings;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    value = 0;
}
2020-06-18 11:09:54.463978+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: LogoutSelected, {
    category = AppSettings;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    value = 0;
}
2020-06-18 11:09:54.486094+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9540581703186035
2020-06-18 11:09:54.868530+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, ScreenView, {
    ga_event_origin (_o) = app;
    screen_name = Login;
}
2020-06-18 11:09:54.869396+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = Login;
}
2020-06-18 11:09:54.875117+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = Login;
}
2020-06-18 11:09:55.531104+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-06-18 11:09:55.531154+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:09:55.532777+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: LogoutSelected, {
    category = AppSettings;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    value = 0;
}
2020-06-18 11:09:55.533079+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = Login;
}
2020-06-18 11:09:55.539796+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 497
2020-06-18 11:09:55.540012+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 4, 1592467794863
2020-06-18 11:09:55.556276+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1592467795555, <APMPBMeasurementBatch: 0x280021640>
2020-06-18 11:09:55.557974+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-06-18 11:09:55.784577+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-06-18 11:09:55.936134+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-06-18 11:09:55.939738+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.076241135597229
2020-06-18 11:09:55.959777+0300 edagsordenqa[13088:11711643] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled

Logged into account with disabled Analytics

2020-06-18 11:10:54.864952+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, ToggledTouchIDSwitch, {
    category = TouchID;
    ga_event_origin (_o) = app;
    label = On;
    value = 0;
}
2020-06-18 11:10:54.866440+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: ToggledTouchIDSwitch, {
    category = TouchID;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    label = On;
    value = 0;
}
2020-06-18 11:10:54.882607+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: ToggledTouchIDSwitch, {
    category = TouchID;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    label = On;
    value = 0;
}
2020-06-18 11:10:54.896486+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9616959095001221
2020-06-18 11:10:55.953659+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-06-18 11:10:55.954520+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:10:55.958804+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: ToggledTouchIDSwitch, {
    category = TouchID;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    label = On;
    value = 0;
}
2020-06-18 11:10:55.971389+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 468
2020-06-18 11:10:55.972610+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 5, 1592467854857
2020-06-18 11:10:56.020717+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1592467856020, <APMPBMeasurementBatch: 0x280022060>
2020-06-18 11:10:56.024759+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-06-18 11:10:56.172736+0300 edagsordenqa[13088:11711421] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-06-18 11:10:56.311641+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-06-18 11:10:56.315259+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.4576908349990845
2020-06-18 11:10:56.335299+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:10:59.060810+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-06-18 11:10:59.062118+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-06-18 11:10:59.062355+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-06-18 11:10:59.062414+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-06-18 11:10:59.063265+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 124629;
    ga_event_origin (_o) = auto;
}
2020-06-18 11:10:59.064093+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 124629;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:10:59.068401+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 124629;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:10:59.076009+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.8081508874893188
2020-06-18 11:10:59.076362+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, app_background (_ab), {
    ga_event_origin (_o) = auto;
}
2020-06-18 11:10:59.077361+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:10:59.080852+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:10:59.093040+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 124629;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:10:59.093088+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-06-18 11:10:59.094691+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 124630
2020-06-18 11:10:59.094789+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 124630
2020-06-18 11:10:59.096279+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 443
2020-06-18 11:10:59.096308+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 6, 1592467858884
2020-06-18 11:10:59.107934+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1592467859107, <APMPBMeasurementBatch: 0x2800210f0>
2020-06-18 11:10:59.110266+0300 edagsordenqa[13088:11711907] 6.26.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-06-18 11:10:59.225605+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-06-18 11:10:59.433020+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-06-18 11:10:59.456171+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:10:59.456268+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023142] Cancelling background upload task. Task ID : 37
2020-06-18 11:11:05.717704+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, TouchIDRegisterSuccess, {
    category = TouchID;
    ga_event_origin (_o) = app;
    value = 0;
}
2020-06-18 11:11:05.718546+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: TouchIDRegisterSuccess, {
    category = TouchID;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    value = 0;
}
2020-06-18 11:11:05.730558+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: TouchIDRegisterSuccess, {
    category = TouchID;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    value = 0;
}
2020-06-18 11:11:05.742678+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9715379476547241
2020-06-18 11:11:06.347620+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, ScreenView, {
    ga_event_origin (_o) = app;
    screen_name = CommiteeList;
}
2020-06-18 11:11:06.348155+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = CommiteeList;
}
2020-06-18 11:11:06.354834+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = CommiteeList;
}
2020-06-18 11:11:06.730091+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-06-18 11:11:06.730442+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-06-18 11:11:06.737424+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: TouchIDRegisterSuccess, {
    category = TouchID;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    value = 0;
}
2020-06-18 11:11:06.738838+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: ScreenView, {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = app;
    ga_realtime (_r) = 1;
    screen_name = CommiteeList;
}
2020-06-18 11:11:06.753649+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 512
2020-06-18 11:11:06.754111+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 7, 1592467866301
2020-06-18 11:11:06.777487+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1592467866776, <APMPBMeasurementBatch: 0x280012e10>
2020-06-18 11:11:06.784656+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-06-18 11:11:07.044346+0300 edagsordenqa[13088:11711899] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-06-18 11:11:07.150436+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-06-18 11:11:07.154027+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.1474751234054565
2020-06-18 11:11:07.171708+0300 edagsordenqa[13088:11710948] 6.26.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled

Then these methods were called:

Analytics.resetAnalyticsData()
Analytics.setAnalyticsCollectionEnabled(false)
FirebaseApp.app()?.isDataCollectionDefaultEnabled = false
 FirebaseApp.app()?.delete({ (success) in
            })

Logs

2020-06-18 11:12:20.860473+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Core][I-COR000034] Explicitly disabled data collection flag.
2020-06-18 11:12:20.860536+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Core][I-COR000006] Deleting app named __FIRAPP_DEFAULT
2020-06-18 11:12:20.862127+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-06-18 11:12:20.862207+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Analytics][I-ACS023013] Analytics collection disabled
2020-06-18 11:12:20.862522+0300 edagsordenqa[13088:11711906] 6.26.0 - [Firebase/Analytics][I-ACS023171] Resetting App Measurement data
2020-06-18 11:12:21.437520+0300 edagsordenqa[13088:11712109] 6.26.0 - [Firebase/Analytics][I-ACS023168] Analytics data has been reset
2020-06-18 11:12:21.438842+0300 edagsordenqa[13088:11712109] 6.26.0 - [Firebase/Analytics][I-ACS023013] Analytics collection disabled
2020-06-18 11:12:21.485780+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002003] APMExperimentAlarm canceled
2020-06-18 11:12:21.486042+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 0.001
2020-06-18 11:12:21.487938+0300 edagsordenqa[13088:11712137] 6.26.0 - [Firebase/Analytics][I-ACS002001] APMExperimentAlarm fired
2020-06-18 11:12:21.489061+0300 edagsordenqa[13088:11712137] 6.26.0 - [Firebase/Analytics][I-ACS002003] APMExperimentAlarm canceled
2020-06-18 11:12:21.864492+0300 edagsordenqa[13088:11711635] 6.26.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 14399.97143304348

Then I waited a little and switched to Springboard. In traffic I see call too GET https://app-measurement.com/config/app/1:88747951688:ios:fd429da08f8602d0?platform=ios&app_instance_id=54C80872479C419EA48A1752DE2DA92D&gmp_version=60600

Logs

2020-06-18 11:13:16.351403+0300 edagsordenqa[13088:11712265] 6.26.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-06-18 11:13:16.351754+0300 edagsordenqa[13088:11712265] 6.26.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-06-18 11:13:16.489839+0300 edagsordenqa[13088:11712294] 6.26.0 - [Firebase/Analytics][I-ACS900001] Downloading data. Host: https://app-measurement.com/config/app/1:88747951688:ios:fd429da08f8602d0?platform=ios&app_instance_id=54C80872479C419EA48A1752DE2DA92D&gmp_version=60600
2020-06-18 11:13:16.674197+0300 edagsordenqa[13088:11712264] 6.26.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/config/app/1:88747951688:ios:fd429da08f8602d0?platform=ios&app_instance_id=54C80872479C419EA48A1752DE2DA92D&gmp_version=60600
2020-06-18 11:13:16.945373+0300 edagsordenqa[13088:11712137] 6.26.0 - [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1586909244956714
2020-06-18 11:13:16.958286+0300 edagsordenqa[13088:11712294] 6.26.0 - [Firebase/Analytics][I-ACS023142] Cancelling background upload task. Task ID : 52
2020-06-18 11:13:17.242456+0300 edagsordenqa[13088:11710932] [Snapshotting] Snapshotting a view (0x10507da00, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES.

Reopened the app, observed network request to POST https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog with long body.

and log:

2020-06-18 11:14:15.658033+0300 edagsordenqa[13088:11711900] 6.26.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
uson1x commented 4 years ago

Just FYI: our clients agreed to keep Crashlytics always on, so we will not be disabling Firebase completely at any point.

The issue is no longer relevant for us, please, feel free to close if you don't plan to investigate further.

ryanwilson commented 4 years ago

Thanks for the update - it's important that we do keep this open and investigate to ensure we understand what's going on here and stop it since this shouldn't be happening.

shengyang998 commented 4 years ago

Hello, is there any investigation going on? I'm facing the same issue here.

Unlike @uson1x , unfortunately, this is an unacceptable behavior due to our privacy policy.

If it cannot be fix in a reasonable time, maybe a removal of firebase framework shall be necessary.

Update:

Same issue means: The network request (to firebaselogging-pa.googleapis.com) exists even In an app that does not even @import Firebase; and call [FIRApp configure]method, all I've done is integrated the framework.

I do use strings command search the binary, and found something like this:

https://firebaselogging.googleapis.com/v0cc/log/logging-pa.googleapis.com/v1/firelog/legacy/batchttps://crashlyticsreports-pa.googleapis.com/v1/firelog/legacy/

What kind of black magic have you done in binary framework, for there is nothing in source code...

Please respond when there is something new.

volmus commented 4 years ago

@ryanwilson Any updates on this? We're facing the same issue.

As @shengyang998 mentions, this is also unacceptable for us due to our privacy policy.

ryanwilson commented 4 years ago

Hey folks, thanks for commenting. I'll get a more detailed answer soon, but a few things to note here:

The APIs that show crashlyticsreport-pa are for Crashlytics reporting.

Re: the strings not being found in the source code, they're there just harder to find to avoid abuse from bots scanning GitHub: https://github.com/firebase/firebase-ios-sdk/blob/fa7b3f9e7e247edfdd79ef9054a5112285c88d28/GoogleDataTransport/GDTCCTLibrary/GDTCCTUploader.m#L115-L164

Question for both @shengyang998 and @volmus - can you please provide the exact API calls in the order you're making them, and the issue you're seeing? The original post had a variety of enabling, disabling, and deleting the FirebaseApp which can affect the runtime flags. It'd be helpful having an exact setup that we can replicate to ensure your issue is addressed and investigated properly. That, and the SDK version you're using since this was reported a few versions ago. Thanks!

shengyang998 commented 4 years ago

Thank you for your information @ryanwilson . I will dig deeper with those.

In my case: The exact API is none.

We use Cocoapods to integrate Firebase framework, and configure it with :configurations => ['AppStore']. However, we did not exclude it from compiling. The version is:

Firebase/Analytics (6.29.0)
Firebase/Core (6.29.0)

The tested app is built with Release and not AppStore macro is defined. We did not even import or access any Firebase class, and voila, there the request it is.

Since I didn't import it, so the network request maybe inside of some +load or +initialize method? Since I couldn't reproduce it (reported by others), I consider it is some kind of multi-threading issue?

Hope these information could help.

ryanwilson commented 4 years ago

Thanks for the quick reply @shengyang998.

To confirm, you don't call FirebaseApp.configure(), correct? There are definitely calls inside of +load that are needed for Analytics to be able to get helpful Analytics data for your product. If you need to ensure that analytics aren't being sent to FirebaseAnalytics during startup, please use the FIREBASE_ANALYTICS_COLLECTION_ENABLED Info.plist key and set it to false. You'll likely still see local logs but should not see any networking from the Analytics SDK itself. If you do see networking with that key disabled, please let us know what calls are being made and that should get resolved.

Note: the above controls FirebaseAnalytics specifically, not all of Firebase. If you want to disable all automatic data collection for Firebase at startup, use the FirebaseDataCollectionDefaultEnabled key in your Info.plist. Then, you can enable it at runtime after a user has opted in using the dataCollectionDefaultEnabled flag on FirebaseApp.

Edit: the other option is - if you have no intention of calling any Firebase APIs and don't want Analytics to ever be collected in a target, the safest bet is always to remove the code entirely.

shengyang998 commented 4 years ago

Thanks @ryanwilson I will try those keys.

Yes, I didn't call FirebaseApp.configure()

To be clear, if I want to disable all automatic network request for Firebase and FirebaseAnalytics, I need to set FirebaseDataCollectionDefaultEnabled to false in Info.plist. And it won't cause automatic data collection if FirebaseDataCollectionDefaultEnabled is set to false. If I want to enable data collection, I should set the property dataCollectionDefaultEnabled to true.

Is that correct? Or should I use both keys in Info.plist?

ryanwilson commented 4 years ago

Correct, the global key FirebaseDataCollectionDefaultEnabled is likely what you want. It is newer and controls all automatic data collection in Firebase SDKs, not just the Firebase Analytics SDK. Then once a user has opted in, or whatever control you're using, you can set the dataCollectionDefaultEnabled runtime property to true and it will persist across app launches for that device.

shengyang998 commented 4 years ago

Thanks a lot, it seems to me that the issue is been fixed. At least I hope so.

eikSchli commented 4 years ago

In our project we ran into the same issue.

We want to use the Firebase Remoteconfig and still be able to turn tracking (user behavior statistics) dynamically on and off. So we cannot avoid using „FirebaseApp.configure()“.

After the newest updates on this Thread, we made following adjustments to our code:

In the info.plist, we set :

as our default setting. If the user wants to allow tracking of „User Statistics“, we changed the value at runtime, like mentioned above:

static func initialize() // Called at appstart
    {
        if Features.fireBaseSupport        {
            FirebaseApp.configure()
            FirebaseApp.app()!.isDataCollectionDefaultEnabled = false      // here: turn it off again

            FirebaseConfiguration.shared.setLoggerLevel(.min)

            Performance.sharedInstance().isDataCollectionEnabled = false
            Performance.sharedInstance().isInstrumentationEnabled = false
            Analytics.setAnalyticsCollectionEnabled(false)

            if(AnalyticsTracker.isEnabled())
            {
                FirebaseApp.app()!.isDataCollectionDefaultEnabled = true                  //here: turn it on

                Performance.sharedInstance().isDataCollectionEnabled=true
                Performance.sharedInstance().isInstrumentationEnabled=true
                Analytics.setAnalyticsCollectionEnabled(true)

                let token = PushManager.sharedInstance.userPushToken;
                if (token != "")
                {
                    Crashlytics.sharedInstance().setUserIdentifier(token)
                }
            }
        }
    }

The problem still seems unsolved, because we ran into following bahaviour:

Operational:

As @ryanwilson mentioned before „[…] you can set the dataCollectionDefaultEnabled runtime property to true and it will persist across app launches for that device.“ Does that mean, it is not possible to turn it off again? We believe, this should not be the case. And in this constalation, is still unacceptable for us due to our privacy policy. We connot force our users to reinstall the app every time they turn this setting on and off again.

Is this intentional behavior or are there any other solutions to this?

Thanks in advance.

mitchcohen commented 4 years ago

Adding a “me too” to this bug. Specifically, I’m seeing an unexplained network call to app-measurement.com. [FIRApp configure] has not been called, and this is in the app’s Info.plist:

<key>FIREBASE_ANALYTICS_COLLECTION_ENABLED</key>
    <false/>

This is a violation of our privacy policy. Unfortunately if this isn’t fixed before our next update, we’ll be pulling Firebase from the app.

paulb777 commented 4 years ago

Filed internal Analytics issue b/168251939

htcgh commented 4 years ago

Firebase 6.33.0 includes changes to address this issue in Analytics. Please re-open this issue if it persists after updating.

eikSchli commented 4 years ago

After updating our Firebase Library to 6.33.0, the problem still persists. Especially after enabling and re-disabling DataCollection and AnalyticsCollection.

htcgh commented 3 years ago

@eikSchli Apologies for the delay. Is this issue still happening in Firebase 7, and if so, which network calls are being triggered while data/analytics collection is disabled?

haozhutw commented 3 years ago

@htcgh We are using Firebase 7.4.0, but still encounter this issue.

We firstly setup Firebase with FirebaseApp.configure() at app launch, then if the user opt out the analytics function on a consent management screen, we disable the Firebase analytics by setting:

FirebaseApp.app()!.isDataCollectionDefaultEnabled = false   
FirebaseConfiguration.shared.setLoggerLevel(.min)
Performance.sharedInstance().isDataCollectionEnabled = false
Performance.sharedInstance().isInstrumentationEnabled = false
Analytics.setAnalyticsCollectionEnabled(false)

But firebaselogging-pa.googleapis.com is still triggered, something wrong with our implementation?

ryanwilson commented 3 years ago

@haozhutw can you please share more information about this, specifically:

Note that the runtime flags do persist data and override any previous settings, so if you are also using a product like Crashlytics and have previously set the Crashlytics specific flag to enabled, it will still make requests.

Without knowing the full list of products you're using and a reproducible case (either within your app or ideally our quickstarts) we won't be able to make further progress on this.

Thanks!

google-oss-bot commented 3 years ago

Hey @uson1x. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

haozhutw commented 3 years ago

@haozhutw can you please share more information about this, specifically:

  • Which products are you using?
  • What Xcode/iOS version are you using?
  • Is this reproducible in Firebase 8.0.0 (just released)?
  • What is the full URL that the data is being sent to?
  • Does this reproduce in our quickstart application with the code above?

Note that the runtime flags do persist data and override any previous settings, so if you are also using a product like Crashlytics and have previously set the Crashlytics specific flag to enabled, it will still make requests.

Without knowing the full list of products you're using and a reproducible case (either within your app or ideally our quickstarts) we won't be able to make further progress on this.

Thanks!

Sorry for the late reply! To answer your questions one by one:

swrobel commented 3 years ago

I'm seeing this with Firebase 8.0.0 on an iOS React Native app that only uses Cloud Messaging. My app is sending tons of pings to Firebase logging:

Screen Shot 2021-06-08 at 2 07 42 PM
morganchen12 commented 3 years ago

@swrobel the logs you're seeing are general purpose non-Analytics logs used by the Firebase team for metrics collection. If you don't have the Analytics SDK in your app, you don't have to worry about this issue.

swrobel commented 3 years ago

you don't have to worry about this issue.

I don't have to worry about unexpected network requests every 30 seconds 🤔? Are you saying there's absolutely no way to disable this?

paulb777 commented 3 years ago

@swrobel Do you have the relevant flags initialized like described above?

maksymmalyhin commented 3 years ago

@haozhutw Setting FirebaseApp.app()?.isDataCollectionDefaultEnabled = false should be enough to prevent requests to firebaselogging-pa.googleapis.com in Firebase 8.1.0. The caveat here is that Firebase Performance may trigger the requests before the flag is set (as a part of FirebaseApp.config()). It means that a request may still be sent during the first app launch. To set this flag earlier you can add a key FirebaseDataCollectionDefaultEnabled with value NO to your app Info.plist as suggested in the docs.

Could you please try adding FirebaseDataCollectionDefaultEnabled and let us know the result? If you still see the requests could you please provide a sample project to reproduce the issue.

Also, I would probably suggest to create a separate ticket for your issue as it looks quite different from the current one.

google-oss-bot commented 3 years ago

Hey @uson1x. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 3 years ago

Since there haven't been any recent updates here, I am going to close this issue.

@uson1x if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.