Skip to content

Very long launch time on iPhone 5 with iOS 10.3.3 #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
artemkalinovsky opened this issue Sep 1, 2017 · 18 comments
Closed

Very long launch time on iPhone 5 with iOS 10.3.3 #227

artemkalinovsky opened this issue Sep 1, 2017 · 18 comments

Comments

@artemkalinovsky
Copy link

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 8.3.3
  • Firebase SDK version: Firebase 4.0.4
  • Library version: FirebaseCore (4.0.4), FirebaseAnalytics (4.0.2)
  • Firebase Product: core(analytics)
  • Device: iPhone 5, iOS 10.3.3

[REQUIRED] Step 3: Describe the problem

I have very long launch time for my app (around 10 seconds or even more!). I've tried to turn off Firebase Analytics logs with -noFIRAnalyticsDebugEnabled but it has no effect on performance.
This issue appears only on iPhone 5.

Steps to reproduce:

Here's my Xcode console logs:

2017-08-31 11:46:30.449104+0300 MyApp[482:53987] A background URLSession with identifier com.company.app.background-session already exists!
2017-08-31 11:46:30.451414+0300 MyApp[482:53987] A background URLSession with identifier com.company.app.background-session already exists!
2017-08-31 11:46:31.518208+0300 MyApp[482:53987] [Crashlytics] Version 3.8.5 (123)
2017-08-31 11:46:31.581259+0300 MyApp[482:53987] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-08-31 11:46:31.582696+0300 MyApp[482:53987] [MC] Reading from public effective user settings.
2017-08-31 11:46:32.364159+0300 MyApp[482:54099] [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-08-31 11:46:32.365 MyApp[482] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-08-31 11:46:32.648562+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40002000 started
2017-08-31 11:46:33.299 MyApp[482] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40002000 started
User is signed in.
2017-08-31 11:46:34.629765+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-08-31 11:46:34.917 MyApp[482] <Notice> [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-08-31 11:46:34.918113+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS023009] Debug logging enabled
2017-08-31 11:46:34.918 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023009] Debug logging enabled
2017-08-31 11:46:34.958909+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-08-31 11:46:34.959 MyApp[482] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-08-31 11:46:35.012556+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1500020271412080
2017-08-31 11:46:35.013 MyApp[482] <Debug> [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1500020271412080
2017-08-31 11:46:35.013982+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS023016] Firebase Analytics is ready to receive events
2017-08-31 11:46:35.014 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023016] Firebase Analytics is ready to receive events
2017-08-31 11:46:35.025749+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-08-31 11:46:35.026 MyApp[482] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-08-31 11:46:35.032014+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-08-31 11:46:35.032 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-08-31 11:46:35.033463+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-08-31 11:46:35.034 MyApp[482] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-08-31 11:46:35.034558+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-08-31 11:46:35.034 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-08-31 11:46:35.035609+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-08-31 11:46:35.035 MyApp[482] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-08-31 11:46:35.041615+0300 MyApp[482:54098] [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    firebase_screen_class (_sc) = UIViewController;
    firebase_screen_id (_si) = 8573684740762330473;
    firebase_event_origin (_o) = auto;
}
2017-08-31 11:46:35.042 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_screen_id (_si) = 8573684740762330473;
	    firebase_event_origin (_o) = auto;
	}
2017-08-31 11:46:35.048282+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    firebase_screen_id (_si) = 8573684740762330473;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-08-31 11:46:35.048 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
	    firebase_screen_id (_si) = 8573684740762330473;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
2017-08-31 11:46:35.122554+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    firebase_screen_id (_si) = 8573684740762330473;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-08-31 11:46:35.123 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
	    firebase_screen_id (_si) = 8573684740762330473;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
2017-08-31 11:46:35.270854+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.877960979938507
2017-08-31 11:46:35.271 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.877960979938507
2017-08-31 11:46:35.272147+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -1.877960979938507
2017-08-31 11:46:35.273 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -1.877960979938507
2017-08-31 11:46:35.275589+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-08-31 11:46:35.276 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-08-31 11:46:35.276832+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-08-31 11:46:35.277 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-08-31 11:46:35.279882+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS023033] Starting data upload
2017-08-31 11:46:35.280 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023033] Starting data upload
2017-08-31 11:46:35.284231+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    firebase_screen_id (_si) = 8573684740762330473;
    firebase_screen_class (_sc) = UIViewController;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
    firebase_event_origin (_o) = auto;
}
2017-08-31 11:46:35.285 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
	    firebase_screen_id (_si) = 8573684740762330473;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	    firebase_event_origin (_o) = auto;
	}
2017-08-31 11:46:35.292168+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 610
2017-08-31 11:46:35.292 MyApp[482] <Debug> [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 610
2017-08-31 11:46:35.294315+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 100, 1504169192391
2017-08-31 11:46:35.294 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 100, 1504169192391
2017-08-31 11:46:35.310474+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 167.5084750652313
2017-08-31 11:46:35.311 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 167.5084750652313
2017-08-31 11:46:35.315551+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504169195309, <FIRAPBMeasurementBatch: 0x17509bf0>
2017-08-31 11:46:35.315 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504169195309, <FIRAPBMeasurementBatch: 0x17509bf0>
2017-08-31 11:46:35.331386+0300 MyApp[482:54117] [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-08-31 11:46:35.331 MyApp[482] <Debug> [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-08-31 11:46:35.547534+0300 MyApp[482:54076] [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-08-31 11:46:35.548 MyApp[482] <Debug> [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-08-31 11:46:35.825637+0300 MyApp[482:54120] [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-08-31 11:46:35.826 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-08-31 11:46:35.836135+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -2.442476987838745
2017-08-31 11:46:35.836 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -2.442476987838745
2017-08-31 11:46:35.837398+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -2.442476987838745
2017-08-31 11:46:35.837 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -2.442476987838745
2017-08-31 11:46:35.965459+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-08-31 11:46:35.966 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-08-31 11:46:35.966776+0300 MyApp[482:54077] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-08-31 11:46:35.967 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
disconnected
2017-08-31 11:46:42.511441+0300 MyApp[482:54182] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.512 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.514965+0300 MyApp[482:54182] [Firebase/Analytics][I-ACS023087] User property set. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.515 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.688125+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.688 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.691463+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023087] User property set. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.692 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-08-31 11:46:42.734767+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: fromFBSignUP, YES
2017-08-31 11:46:42.735 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: fromFBSignUP, YES
2017-08-31 11:46:42.740447+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023087] User property set. Name, value: fromFBSignUP, YES
2017-08-31 11:46:42.741 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: fromFBSignUP, YES
2017-08-31 11:46:42.745852+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023075] Removing user property. Name: MyApp_age
2017-08-31 11:46:42.746 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023075] Removing user property. Name: MyApp_age
2017-08-31 11:46:42.747207+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023078] User property removed. Name: MyApp_age
2017-08-31 11:46:42.747 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023078] User property removed. Name: MyApp_age
2017-08-31 11:46:42.748485+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: MyApp_gender, Female
2017-08-31 11:46:42.749 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: MyApp_gender, Female
2017-08-31 11:46:42.753175+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023087] User property set. Name, value: MyApp_gender, Female
2017-08-31 11:46:42.753 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: MyApp_gender, Female
2017-08-31 11:46:42.759845+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-08-31 11:46:42.760 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-08-31 11:46:42.764477+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023087] User property set. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-08-31 11:46:42.765 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-08-31 11:46:42.774833+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: universityName, Dnipropetrovsk National University
2017-08-31 11:46:42.775 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: universityName, Dnipropetrovsk National University
2017-08-31 11:46:42.776379+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023087] User property set. Name, value: universityName, Dnipropetrovsk National University
2017-08-31 11:46:42.777 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: universityName, Dnipropetrovsk National University
2017-08-31 11:46:42.778515+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasPhoto, YES
2017-08-31 11:46:42.779 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasPhoto, YES
2017-08-31 11:46:42.783592+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasPhoto, YES
2017-08-31 11:46:42.784 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasPhoto, YES
2017-08-31 11:46:42.788788+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: socialNetworkProperty, YES
2017-08-31 11:46:42.789 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: socialNetworkProperty, YES
2017-08-31 11:46:42.795140+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023087] User property set. Name, value: socialNetworkProperty, YES
2017-08-31 11:46:42.801 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: socialNetworkProperty, YES
2017-08-31 11:46:42.802353+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: propertyName1, YES
2017-08-31 11:46:42.802 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: propertyName1, YES
2017-08-31 11:46:42.803817+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023087] User property set. Name, value: propertyName1, YES
2017-08-31 11:46:42.805 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: propertyName1, YES
2017-08-31 11:46:42.809270+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: propertyName2, YES
2017-08-31 11:46:42.810 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: propertyName2, YES
2017-08-31 11:46:42.816559+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023087] User property set. Name, value: propertyName2, YES
2017-08-31 11:46:42.817 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: propertyName2, YES
2017-08-31 11:46:42.818475+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasInterests, 1
2017-08-31 11:46:42.819 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasInterests, 1
2017-08-31 11:46:42.824898+0300 MyApp[482:54106] [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasInterests, 1
2017-08-31 11:46:42.825 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasInterests, 1
2017-08-31 11:46:42.828013+0300 MyApp[482:54117] [Firebase/Analytics][I-ACS023075] Removing user property. Name: introTypes
2017-08-31 11:46:42.828 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023075] Removing user property. Name: introTypes
2017-08-31 11:46:42.829249+0300 MyApp[482:54117] [Firebase/Analytics][I-ACS023078] User property removed. Name: introTypes
2017-08-31 11:46:42.829 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023078] User property removed. Name: introTypes
2017-08-31 11:46:43.917436+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.918 MyApp[482] <Debug> [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.919219+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-08-31 11:46:43.921 MyApp[482] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-08-31 11:46:43.922006+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2017-08-31 11:46:43.923 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2017-08-31 11:46:43.924832+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-08-31 11:46:43.926 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-08-31 11:46:43.928013+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.930 MyApp[482] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.932924+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.934 MyApp[482] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.935509+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.936 MyApp[482] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.937689+0300 MyApp[482:54191] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:43.938 MyApp[482] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, 8573684740762330474
2017-08-31 11:46:44.020910+0300 MyApp[482:54085] [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    firebase_screen_id (_si) = 8573684740762330473;
    engagement_time_msec (_et) = 8727;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
}
2017-08-31 11:46:44.023 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
	    firebase_screen_id (_si) = 8573684740762330473;
	    engagement_time_msec (_et) = 8727;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	}
2017-08-31 11:46:44.211500+0300 MyApp[482:54085] [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    firebase_screen_id (_si) = 8573684740762330473;
    engagement_time_msec (_et) = 8727;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-08-31 11:46:44.213 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
	    firebase_screen_id (_si) = 8573684740762330473;
	    engagement_time_msec (_et) = 8727;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
inserted [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87]
2017-08-31 11:46:44.972407+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    firebase_screen_id (_si) = 8573684740762330473;
    engagement_time_msec (_et) = 8727;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-08-31 11:46:44.982 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
	    firebase_screen_id (_si) = 8573684740762330473;
	    engagement_time_msec (_et) = 8727;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
2017-08-31 11:46:45.105940+0300 MyApp[482:54193] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.330653965473175
2017-08-31 11:46:45.106 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.330653965473175
2017-08-31 11:46:45.107752+0300 MyApp[482:54193] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.330653965473175
2017-08-31 11:46:45.108 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.330653965473175
2017-08-31 11:46:45.115053+0300 MyApp[482:54193] [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    firebase_screen_id (_si) = 8573684740762330474;
    firebase_previous_class (_pc) = UIViewController;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_event_origin (_o) = auto;
    firebase_previous_id (_pi) = 8573684740762330473;
}
2017-08-31 11:46:45.117 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
	    firebase_screen_id (_si) = 8573684740762330474;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_event_origin (_o) = auto;
	    firebase_previous_id (_pi) = 8573684740762330473;
	}
2017-08-31 11:46:45.145830+0300 MyApp[482:54193] [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_screen_id (_si) = 8573684740762330474;
    firebase_previous_class (_pc) = UIViewController;
    firebase_debug (_dbg) = 1;
    firebase_previous_id (_pi) = 8573684740762330473;
}
2017-08-31 11:46:45.147 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_screen_id (_si) = 8573684740762330474;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_debug (_dbg) = 1;
	    firebase_previous_id (_pi) = 8573684740762330473;
	}
2017-08-31 11:46:45.395709+0300 MyApp[482:54218] [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_screen_id (_si) = 8573684740762330474;
    firebase_previous_class (_pc) = UIViewController;
    firebase_debug (_dbg) = 1;
    firebase_previous_id (_pi) = 8573684740762330473;
}
2017-08-31 11:46:45.398 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_screen_id (_si) = 8573684740762330474;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_debug (_dbg) = 1;
	    firebase_previous_id (_pi) = 8573684740762330473;
	}
inserted [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67]
2017-08-31 11:46:45.451887+0300 MyApp[482:54218] [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: -0.6761619448661804
2017-08-31 11:46:45.452 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: -0.6761619448661804
2017-08-31 11:46:45.453263+0300 MyApp[482:54218] [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-08-31 11:46:45.455 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-08-31 11:46:45.456547+0300 MyApp[482:54218] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-08-31 11:46:45.457 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-08-31 11:46:45.478277+0300 MyApp[482:54218] [Firebase/Analytics][I-ACS023033] Starting data upload
2017-08-31 11:46:45.479 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023033] Starting data upload
2017-08-31 11:46:45.533005+0300 MyApp[482:54193] [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), {
    firebase_screen_id (_si) = 8573684740762330473;
    engagement_time_msec (_et) = 8727;
    firebase_screen_class (_sc) = UIViewController;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
    firebase_event_origin (_o) = auto;
}
2017-08-31 11:46:45.535 MyApp[482] <Debug> [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), {
	    firebase_screen_id (_si) = 8573684740762330473;
	    engagement_time_msec (_et) = 8727;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	    firebase_event_origin (_o) = auto;
	}
2017-08-31 11:46:45.592805+0300 MyApp[482:54193] [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_screen_id (_si) = 8573684740762330474;
    firebase_previous_class (_pc) = UIViewController;
    firebase_debug (_dbg) = 1;
    firebase_previous_id (_pi) = 8573684740762330473;
}
2017-08-31 11:46:45.594 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_screen_id (_si) = 8573684740762330474;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_debug (_dbg) = 1;
	    firebase_previous_id (_pi) = 8573684740762330473;
	}
2017-08-31 11:46:45.647262+0300 MyApp[482:54193] [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 667
2017-08-31 11:46:45.648 MyApp[482] <Debug> [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 667
2017-08-31 11:46:45.660254+0300 MyApp[482:54193] [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 101, 1504169203753
2017-08-31 11:46:45.661 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 101, 1504169203753
connected
inserted [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
2017-08-31 11:46:46.103639+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 10.15727996826172
2017-08-31 11:46:46.104 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 10.15727996826172
2017-08-31 11:46:46.104882+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504169205915, <FIRAPBMeasurementBatch: 0x1750a2f0>
2017-08-31 11:46:46.105 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504169205915, <FIRAPBMeasurementBatch: 0x1750a2f0>
2017-08-31 11:46:46.106034+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-08-31 11:46:46.106 MyApp[482] <Debug> [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-08-31 11:46:46.345978+0300 MyApp[482:54205] [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-08-31 11:46:46.346 MyApp[482] <Debug> [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-08-31 11:46:46.554559+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-08-31 11:46:46.555 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-08-31 11:46:46.559092+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.805166006088257
2017-08-31 11:46:46.559 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.805166006088257
2017-08-31 11:46:46.560630+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -1.805166006088257
2017-08-31 11:46:46.561 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -1.805166006088257
2017-08-31 11:46:46.567792+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-08-31 11:46:46.568 MyApp[482] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-08-31 11:46:46.569017+0300 MyApp[482:54186] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-08-31 11:46:46.569 MyApp[482] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
@paulb777
Copy link
Member

paulb777 commented Sep 1, 2017

@artemkalinovsky Thanks for the report.

We've done a few startup performance improvements in the last few updates. Would you try Firebase 4.1.1 to see if that makes a difference?

@artemkalinovsky
Copy link
Author

@paulb777 I've updated Firebase SDK to version 4.1.1:

Installing Firebase 4.1.1 (was 4.0.4)
Installing FirebaseAnalytics 4.0.3 (was 4.0.2)
Installing FirebaseAuth 4.1.1 (was 4.0.0)
Installing FirebaseCore 4.0.6 (was 4.0.4)
Installing FirebaseDatabase 4.0.2 (was 4.0.0)
Installing FirebaseInstanceID 2.0.2 (was 2.0.0)
Installing FirebaseMessaging 2.0.2 (was 2.0.0)
Installing FirebaseStorage 2.0.1 (was 2.0.0)
Installing Protobuf 3.4.0 (was 3.3.0)
Installing leveldb-library (1.18.3)

But it has no influence on launch time on iPhone 5 (still long, as it was before update)

Here're my logs:

objc[342]: Class LISDKAccessToken is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878228) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692678). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKSessionManager is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878250) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6926a0). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKAPIResponse is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878278) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6926c8). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKAPIHelper is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x18782a0) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6926f0). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKUtils is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x18782dc) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x69272c). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKCallbackHandler is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878304) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692754). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKSession is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878318) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692768). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKKeychainSessionStore is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878340) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692790). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKDeeplinkHelper is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878368) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6927b8). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKAPIError is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878390) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6927e0). One of the two will be used. Which one is undefined.
2017-09-04 11:59:09.598697+0300 MyApp[342:26958] A background URLSession with identifier com.company.app.background-session already exists!
2017-09-04 11:59:09.601811+0300 MyApp[342:26958] A background URLSession with identifier com.company.app.background-session already exists!
2017-09-04 11:59:10.588182+0300 MyApp[342:26958] [Crashlytics] Version 3.8.5 (123)
2017-09-04 11:59:10.648580+0300 MyApp[342:26958] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-09-04 11:59:10.649927+0300 MyApp[342:26958] [MC] Reading from public effective user settings.
2017-09-04 11:59:11.104338+0300 MyApp[342:27145] [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-09-04 11:59:11.107 MyApp[342] <Notice> [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-09-04 11:59:11.595637+0300 MyApp[342:27146] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40003000 started
2017-09-04 11:59:11.625 MyApp[342] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40003000 started
2017-09-04 11:59:12.344538+0300 MyApp[342:27146] [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2017-09-04 11:59:12.361 MyApp[342] <Notice> [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
User is signed in.
2017-09-04 11:59:14.129872+0300 MyApp[342:27176] [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-09-04 11:59:14.130 MyApp[342] <Debug> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-09-04 11:59:14.239211+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1500020271412080
2017-09-04 11:59:14.240 MyApp[342] <Debug> [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1500020271412080
2017-09-04 11:59:14.240774+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS023016] Firebase Analytics is ready to receive events
2017-09-04 11:59:14.243 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023016] Firebase Analytics is ready to receive events
2017-09-04 11:59:14.247687+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-09-04 11:59:14.248 MyApp[342] <Debug> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-09-04 11:59:14.251389+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-09-04 11:59:14.253 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-09-04 11:59:14.254714+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-09-04 11:59:14.255 MyApp[342] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-09-04 11:59:14.255943+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-09-04 11:59:14.256 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-09-04 11:59:14.256931+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-09-04 11:59:14.257 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-09-04 11:59:14.260975+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    firebase_screen_class (_sc) = UIViewController;
    firebase_screen_id (_si) = -5032431264443474308;
    firebase_event_origin (_o) = auto;
}
2017-09-04 11:59:14.261 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_screen_id (_si) = -5032431264443474308;
	    firebase_event_origin (_o) = auto;
	}
2017-09-04 11:59:14.270340+0300 MyApp[342:27170] [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    firebase_screen_id (_si) = -5032431264443474308;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-09-04 11:59:14.271 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
	    firebase_screen_id (_si) = -5032431264443474308;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
2017-09-04 11:59:14.499498+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    firebase_screen_id (_si) = -5032431264443474308;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-09-04 11:59:14.500 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
	    firebase_screen_id (_si) = -5032431264443474308;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
2017-09-04 11:59:14.513550+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.919058978557587
2017-09-04 11:59:14.514 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.919058978557587
2017-09-04 11:59:14.515605+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -1.919058978557587
2017-09-04 11:59:14.516 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -1.919058978557587
2017-09-04 11:59:14.517907+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-09-04 11:59:14.518 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-09-04 11:59:14.518899+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-09-04 11:59:14.519 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-09-04 11:59:14.521969+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS023033] Starting data upload
2017-09-04 11:59:14.522 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023033] Starting data upload
2017-09-04 11:59:14.525868+0300 MyApp[342:27170] [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    firebase_screen_id (_si) = -5032431264443474308;
    firebase_screen_class (_sc) = UIViewController;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
    firebase_event_origin (_o) = auto;
}
2017-09-04 11:59:14.529 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
	    firebase_screen_id (_si) = -5032431264443474308;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	    firebase_event_origin (_o) = auto;
	}
2017-09-04 11:59:14.538323+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 611
2017-09-04 11:59:14.538 MyApp[342] <Debug> [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 611
2017-09-04 11:59:14.539451+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 13, 1504515551588
2017-09-04 11:59:14.539 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 13, 1504515551588
2017-09-04 11:59:14.550235+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 494.8807141780853
2017-09-04 11:59:14.551 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 494.8807141780853
2017-09-04 11:59:14.551796+0300 MyApp[342:27152] [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504515554547, <FIRAPBMeasurementBatch: 0x175747f0>
2017-09-04 11:59:14.551 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504515554547, <FIRAPBMeasurementBatch: 0x175747f0>
2017-09-04 11:59:14.586674+0300 MyApp[342:27170] [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-09-04 11:59:14.587 MyApp[342] <Debug> [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-09-04 11:59:14.718897+0300 MyApp[342:27170] [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-09-04 11:59:14.719 MyApp[342] <Debug> [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-09-04 11:59:15.018205+0300 MyApp[342:27187] [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-09-04 11:59:15.019 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-09-04 11:59:16.422972+0300 MyApp[342:27187] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -3.502274930477142
2017-09-04 11:59:16.546 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -3.502274930477142
2017-09-04 11:59:16.549575+0300 MyApp[342:27187] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -3.502274930477142
2017-09-04 11:59:16.556 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -3.502274930477142
2017-09-04 11:59:16.662790+0300 MyApp[342:27170] [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-09-04 11:59:16.666 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-09-04 11:59:16.840782+0300 MyApp[342:27170] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-09-04 11:59:16.844 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
disconnected
2017-09-04 11:59:24.156255+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.157 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.162940+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023087] User property set. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.164 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: user_id (_id), AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.302436+0300 MyApp[342:27172] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.303 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.306139+0300 MyApp[342:27172] [Firebase/Analytics][I-ACS023087] User property set. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.306 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: userIdentifier, AB4XFwAOOMNJMIEcBdomDxLCzFw1
2017-09-04 11:59:24.362559+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: fromFBSignUP, YES
2017-09-04 11:59:24.363 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: fromFBSignUP, YES
2017-09-04 11:59:24.370115+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023087] User property set. Name, value: fromFBSignUP, YES
2017-09-04 11:59:24.370 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: fromFBSignUP, YES
2017-09-04 11:59:24.371611+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023075] Removing user property. Name: MyApp_age
2017-09-04 11:59:24.372 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023075] Removing user property. Name: MyApp_age
2017-09-04 11:59:24.375680+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023078] User property removed. Name: MyApp_age
2017-09-04 11:59:24.376 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023078] User property removed. Name: MyApp_age
2017-09-04 11:59:24.377008+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: MyApp_gender, Female
2017-09-04 11:59:24.377 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: MyApp_gender, Female
2017-09-04 11:59:24.382413+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023087] User property set. Name, value: MyApp_gender, Female
2017-09-04 11:59:24.383 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: MyApp_gender, Female
2017-09-04 11:59:24.386970+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-09-04 11:59:24.387 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-09-04 11:59:24.393001+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023087] User property set. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-09-04 11:59:24.394 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: cityName, Dnipropetrovsk, Ukraine
2017-09-04 11:59:24.394947+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: universityName, Dnipropetrovsk National University
2017-09-04 11:59:24.395 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: universityName, Dnipropetrovsk National University
2017-09-04 11:59:24.401453+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023087] User property set. Name, value: universityName, Dnipropetrovsk National University
2017-09-04 11:59:24.402 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: universityName, Dnipropetrovsk National University
2017-09-04 11:59:24.407158+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasPhoto, YES
2017-09-04 11:59:24.408 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasPhoto, YES
2017-09-04 11:59:24.413631+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasPhoto, YES
2017-09-04 11:59:24.415 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasPhoto, YES
2017-09-04 11:59:24.416146+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasInstagram, YES
2017-09-04 11:59:24.416 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasInstagram, YES
2017-09-04 11:59:24.422621+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasInstagram, YES
2017-09-04 11:59:24.423 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasInstagram, YES
2017-09-04 11:59:24.427301+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasFacebook, YES
2017-09-04 11:59:24.427 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasFacebook, YES
2017-09-04 11:59:24.432576+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasFacebook, YES
2017-09-04 11:59:24.433 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasFacebook, YES
2017-09-04 11:59:24.437278+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasTwitter, YES
2017-09-04 11:59:24.438 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasTwitter, YES
2017-09-04 11:59:24.442189+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasTwitter, YES
2017-09-04 11:59:24.474 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasTwitter, YES
2017-09-04 11:59:24.482766+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasInterests, 1
2017-09-04 11:59:24.483 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023080] Setting user property. Name, value: hasInterests, 1
2017-09-04 11:59:24.484843+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasInterests, 1
2017-09-04 11:59:24.485 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023087] User property set. Name, value: hasInterests, 1
2017-09-04 11:59:24.486312+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023075] Removing user property. Name: introTypes
2017-09-04 11:59:24.488 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023075] Removing user property. Name: introTypes
2017-09-04 11:59:24.489405+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023078] User property removed. Name: introTypes
2017-09-04 11:59:24.489 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023078] User property removed. Name: introTypes
2017-09-04 11:59:24.509295+0300 MyApp[342:27233] [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_newContact with token: (null)
2017-09-04 11:59:24.511 MyApp[342] <Error> [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_newContact with token: (null)
2017-09-04 11:59:24.680024+0300 MyApp[342:27233] [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_newIntroduction with token: (null)
2017-09-04 11:59:24.681 MyApp[342] <Error> [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_newIntroduction with token: (null)
2017-09-04 11:59:24.681831+0300 MyApp[342:27233] [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_userAddedToRoster with token: (null)
2017-09-04 11:59:24.682 MyApp[342] <Error> [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_userAddedToRoster with token: (null)
2017-09-04 11:59:24.683491+0300 MyApp[342:27233] [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_rosterRequest with token: (null)
2017-09-04 11:59:24.684 MyApp[342] <Error> [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_rosterRequest with token: (null)
2017-09-04 11:59:24.685399+0300 MyApp[342:27233] [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_newChatMessage with token: (null)
2017-09-04 11:59:24.686 MyApp[342] <Error> [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_newChatMessage with token: (null)
2017-09-04 11:59:24.687690+0300 MyApp[342:27233] [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_MyAppMeRequest with token: (null)
2017-09-04 11:59:24.688 MyApp[342] <Error> [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/AB4XFwAOOMNJMIEcBdomDxLCzFw1_MyAppMeRequest with token: (null)
2017-09-04 11:59:24.689242+0300 MyApp[342:27233] [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/newAppFeatures with token: (null)
2017-09-04 11:59:24.689 MyApp[342] <Error> [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/newAppFeatures with token: (null)
2017-09-04 11:59:25.770562+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.771 MyApp[342] <Debug> [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.772335+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-09-04 11:59:25.773 MyApp[342] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-09-04 11:59:25.774075+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2017-09-04 11:59:25.774 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2017-09-04 11:59:25.775818+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-09-04 11:59:25.777 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-09-04 11:59:25.779964+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.781 MyApp[342] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.782677+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.784 MyApp[342] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.787630+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.788 MyApp[342] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.789714+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.791 MyApp[342] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: UINavigationController, -5032431264443474307
2017-09-04 11:59:25.809958+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    firebase_screen_id (_si) = -5032431264443474308;
    engagement_time_msec (_et) = 11143;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
}
2017-09-04 11:59:25.812 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
	    firebase_screen_id (_si) = -5032431264443474308;
	    engagement_time_msec (_et) = 11143;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	}
2017-09-04 11:59:25.984324+0300 MyApp[342:27145] [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    firebase_screen_id (_si) = -5032431264443474308;
    engagement_time_msec (_et) = 11143;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-09-04 11:59:25.985 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
	    firebase_screen_id (_si) = -5032431264443474308;
	    engagement_time_msec (_et) = 11143;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
connected
2017-09-04 11:59:26.207991+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    firebase_screen_id (_si) = -5032431264443474308;
    engagement_time_msec (_et) = 11143;
    firebase_screen_class (_sc) = UIViewController;
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
}
2017-09-04 11:59:26.209 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
	    firebase_screen_id (_si) = -5032431264443474308;
	    engagement_time_msec (_et) = 11143;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	}
2017-09-04 11:59:26.359955+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.03590989112854004
2017-09-04 11:59:26.360 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.03590989112854004
2017-09-04 11:59:26.361318+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.03590989112854004
2017-09-04 11:59:26.361 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.03590989112854004
2017-09-04 11:59:26.371910+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    firebase_screen_id (_si) = -5032431264443474307;
    firebase_previous_class (_pc) = UIViewController;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_event_origin (_o) = auto;
    firebase_previous_id (_pi) = -5032431264443474308;
}
2017-09-04 11:59:26.373 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
	    firebase_screen_id (_si) = -5032431264443474307;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_event_origin (_o) = auto;
	    firebase_previous_id (_pi) = -5032431264443474308;
	}
2017-09-04 11:59:26.375628+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_screen_id (_si) = -5032431264443474307;
    firebase_previous_class (_pc) = UIViewController;
    firebase_debug (_dbg) = 1;
    firebase_previous_id (_pi) = -5032431264443474308;
}
2017-09-04 11:59:26.376 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_screen_id (_si) = -5032431264443474307;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_debug (_dbg) = 1;
	    firebase_previous_id (_pi) = -5032431264443474308;
	}
2017-09-04 11:59:26.439912+0300 MyApp[342:27233] [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_screen_id (_si) = -5032431264443474307;
    firebase_previous_class (_pc) = UIViewController;
    firebase_debug (_dbg) = 1;
    firebase_previous_id (_pi) = -5032431264443474308;
}
2017-09-04 11:59:26.441 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_screen_id (_si) = -5032431264443474307;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_debug (_dbg) = 1;
	    firebase_previous_id (_pi) = -5032431264443474308;
	}
2017-09-04 11:59:26.447222+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: -0.05764007568359375
2017-09-04 11:59:26.448 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: -0.05764007568359375
2017-09-04 11:59:26.490877+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-09-04 11:59:26.491 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-09-04 11:59:26.491758+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-09-04 11:59:26.492 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-09-04 11:59:26.492835+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS023033] Starting data upload
2017-09-04 11:59:26.493 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023033] Starting data upload
2017-09-04 11:59:26.536845+0300 MyApp[342:27251] [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), {
    firebase_screen_id (_si) = -5032431264443474308;
    engagement_time_msec (_et) = 11143;
    firebase_screen_class (_sc) = UIViewController;
    firebase_realtime (_r) = 1;
    firebase_debug (_dbg) = 1;
    firebase_event_origin (_o) = auto;
}
2017-09-04 11:59:26.538 MyApp[342] <Debug> [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), {
	    firebase_screen_id (_si) = -5032431264443474308;
	    engagement_time_msec (_et) = 11143;
	    firebase_screen_class (_sc) = UIViewController;
	    firebase_realtime (_r) = 1;
	    firebase_debug (_dbg) = 1;
	    firebase_event_origin (_o) = auto;
	}
2017-09-04 11:59:26.556460+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    firebase_event_origin (_o) = auto;
    firebase_realtime (_r) = 1;
    firebase_screen_class (_sc) = UINavigationController;
    firebase_screen_id (_si) = -5032431264443474307;
    firebase_previous_class (_pc) = UIViewController;
    firebase_debug (_dbg) = 1;
    firebase_previous_id (_pi) = -5032431264443474308;
}
2017-09-04 11:59:26.558 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
	    firebase_event_origin (_o) = auto;
	    firebase_realtime (_r) = 1;
	    firebase_screen_class (_sc) = UINavigationController;
	    firebase_screen_id (_si) = -5032431264443474307;
	    firebase_previous_class (_pc) = UIViewController;
	    firebase_debug (_dbg) = 1;
	    firebase_previous_id (_pi) = -5032431264443474308;
	}
2017-09-04 11:59:26.591445+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 669
2017-09-04 11:59:26.592 MyApp[342] <Debug> [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 669
2017-09-04 11:59:26.592647+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 14, 1504515565390
2017-09-04 11:59:26.593 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 14, 1504515565390
2017-09-04 11:59:26.610764+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 11.65253710746765
2017-09-04 11:59:26.611 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 11.65253710746765
2017-09-04 11:59:26.618863+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504515566614, <FIRAPBMeasurementBatch: 0x177079e0>
2017-09-04 11:59:26.619 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504515566614, <FIRAPBMeasurementBatch: 0x177079e0>
2017-09-04 11:59:26.654468+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-09-04 11:59:26.657 MyApp[342] <Debug> [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-09-04 11:59:26.812166+0300 MyApp[342:27251] [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-09-04 11:59:26.812 MyApp[342] <Debug> [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-09-04 11:59:26.946121+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-09-04 11:59:26.946 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-09-04 11:59:26.964038+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.5728669166564941
2017-09-04 11:59:26.964 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.5728669166564941
2017-09-04 11:59:26.965374+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.5728669166564941
2017-09-04 11:59:26.965 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.5728669166564941
2017-09-04 11:59:26.978173+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-09-04 11:59:26.978 MyApp[342] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-09-04 11:59:26.979649+0300 MyApp[342:27232] [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-09-04 11:59:26.980 MyApp[342] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
inserted [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87]
inserted [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67]

@baolocdo
Copy link

baolocdo commented Sep 5, 2017

To help us debug more, can you please provide how you measured the launch time? How did you get 10s of delay? Did it block the app from running for 10s and no screen display at all?
The entire log you provided was pretty detail but looking at the wall clock timestamp, I couldn't see the problem here as Analytics is usually started after the app is launched unless you call [FIRApp configure] at +load, and it seems to function normally within seconds.
Can you also try removing Analytics framework entirely (unlink it from your project) and see if it improves at all? Thanks

@artemkalinovsky
Copy link
Author

artemkalinovsky commented Sep 5, 2017

@baolocdo
This issue is reproduced only on iPhone 5.

I'm using Time Profiler to measure launch time.
time

During delay in my app start I see splash screen (LauchScreen.storyboard)

In my app FirebaseApp.configure() method called in func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool, because I need to check some data in RealTimeDatabase and show correct UI flow for user. Could it be a cause of delay?

Can you also try removing Analytics framework entirely (unlink it from your project) and see if it improves at all?

How I can do this? I'm using CocoaPods and seems that FirebaseAnalytics.framework is part of pod 'Firebase/Core'🤔

Thanks

@rsattar
Copy link
Contributor

rsattar commented Sep 5, 2017

@artemkalinovsky Does this happen on every start, or just after install?

FWIW, the Instance ID 2.0.1 SDK had a performance regression for startup, which was fixed in Instance ID 2.0.2. As a sanity check, make sure you have IID 2.0.2 in your Podfile. Thanks!

@morganchen12
Copy link
Contributor

Looks like the InstanceID version posted is 2.0.2, not 2.0.1.

Is this reproducible in a sample with just Firebase? It seems in your app there are several other frameworks doing things at startup.

@artemkalinovsky
Copy link
Author

@rsattar this delay happen on every app start

@artemkalinovsky
Copy link
Author

@morganchen12

It seems in your app there are several other frameworks doing things at startup.

Do you mean this:

objc[342]: Class LISDKAccessToken is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878228) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692678). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKSessionManager is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878250) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6926a0). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKAPIResponse is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878278) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6926c8). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKAPIHelper is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x18782a0) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6926f0). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKUtils is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x18782dc) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x69272c). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKCallbackHandler is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878304) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692754). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKSession is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878318) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692768). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKKeychainSessionStore is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878340) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692790). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKDeeplinkHelper is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878368) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6927b8). One of the two will be used. Which one is undefined.
objc[342]: Class LISDKAPIError is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878390) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x6927e0). One of the two will be used. Which one is undefined.

???

Is this reproducible in a sample with just Firebase?

Please, clarify this idea. How I can check this?

thanks!

@morganchen12
Copy link
Contributor

Those console logs shouldn't have any noticeable effect on launch time, though they may cause other bugs.

Can you share the instruments trace, or at least dig down into the launch section and report which method calls are taking up the most time?

@baolocdo
Copy link

baolocdo commented Sep 6, 2017

There could be multiple sources that can cause slow startup time. If you uncomment [FIRApp configure], would it improve the startup time?
I noticed the log

Class LISDKAccessToken is implemented in both /private/var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/Frameworks/LinkedinSwift.framework/LinkedinSwift (0x1878228) and /var/containers/Bundle/Application/F255FB1E-78E5-41FE-A963-378296F2772F/MyApp.app/MyApp (0x692678). One of the two will be used. Which one is undefined.

Are you adding those SDKs as dynamic libraries into a library that your app depends on? (Sorry if this sounds confusing). I have seen similar problem so just want to know if it is the case.
Since there are also multiple Firebase SDKs, would you mind taking some other Firebase SDKs out of the Pod file and leaving some left to pinpoint which SDK is causing the problem? For example, you can try taking out most of other SDKs like Auth, Database except Firebase Core, and putting each one back at a time to measure the problem?
I know it will take you a lot of time but any tips would be greatly helpful for us! We really appreciate your feedback!

@artemkalinovsky
Copy link
Author

@morganchen12
Sure, here're my stack traces from Instruments
111
screen shot 2017-09-06 at 13 14 31

@artemkalinovsky
Copy link
Author

@baolocdo

Are you adding those SDKs as dynamic libraries into a library that your app depends on? (Sorry if this sounds confusing).

I'm managing all 3rd party SDKs with Cocoapods.

For example, you can try taking out most of other SDKs like Auth, Database except Firebase Core, and putting each one back at a time to measure the problem?
I know it will take you a lot of time but any tips would be greatly helpful for us!

Ok, to check this, I should remove all Firebase frameworks from my Podfile, and compile each framework by myself from sources and by one add them to my project, right?
Can I use Carthage or frameworks, compiled by Cocoapods from Pods Xcode project, to make compilation process easier?

thanks

@paulb777
Copy link
Member

paulb777 commented Sep 6, 2017

If you're already using CocoaPods, it would be simpler to edit the Podfile and regenerate the Xcode workspace with pod install --no-repo-update

@morganchen12
Copy link
Contributor

@artemkalinovsky please dig down into the heaviest call stack in Instruments by clicking the small triangle next to _dispatch_worker_thread3. Expand all the way down until you see method calls from your app and/or Firebase.

@rsattar
Copy link
Contributor

rsattar commented Sep 6, 2017

I would also drill down to expanding Main Thread (which was at 3.89 seconds). Activity in there is what would block the UI / make the app unresponsive.

@artemkalinovsky
Copy link
Author

@rsattar @morganchen12 @paulb777 @baolocdo
Guys, I've investigated my call three and it's seems that delay is caused by huge amount of JSON parsings
screen shot 2017-09-11 at 11 32 32

Also, now I don't use any JSON parsing library like https://github.com/evgenyneu/JsonSwiftson or https://github.com/delba/JASON and https://github.com/evgenyneu/JsonSwiftson. In your, opinion, could they help me?

@baolocdo
Copy link

just to be clear, which libraries are parsing JSONs? If you are doing it yourself, I'd recommend to dispatch the call to some other queues asynchronously to unblock your main queue.

@morganchen12
Copy link
Contributor

morganchen12 commented Sep 11, 2017

Looks like NSJSONSerialization is being invoked from your app, not Firebase.

It's unlikely a JSON parsing framework will help you--instead you should do your parsing asynchronously as mentioned above or wait until your app has finished launching before parsing any JSON.

christibbs added a commit that referenced this issue Jan 25, 2019
* compile and run

* unit tests pass and swift target compiles

* dump build version in activity log

* standardize cross sdk imports in firebase iam code (#211)

standardize cross sdk imports & polish with style script

* using new sample app for testing non-development fiam sdk (#213)

* in-app messaging public interface cleanup (#216)

* slim down public header files

* move testing source files to their correct folders

* compiles

* style script fine-tune

* adding root object creation methods to follow the firebse iOS convension

* IAM url following refactor (#218)

* @available not supported by blaze build yet (#220)

* Clearcut integration for in-app messaging (#222)

* Update iam-master to catch up with latest master (#223)

* Support multiple triggers defined for the same iam message (#224)

* FIAM Clearcut Client Implmentation Improvement (#226)

* fixing action url bug and set auto dismiss to be 12 seconds (#227)

* use official public api dns name (#233)

* Logging firebase analytics events for fiam (#232)

* Fine tuning of fiam's code for loading data from caches (#234)

* fiam ui fine tuning before EAP (#235)

* allow fiam SDK functions to be disabled/enabled dynamically (#247)

* analytics event parameter name tuning (#253)

* migrate off @import for fiam code (#261)

* different modes for fiam sdk at runtime (#262)

* realtime clearcut when in running in simulator (#265)

* Update interface based on the Firebase API review feedback  (#267)

* check existence of fiam SDK resource bundle (#268)

* handling api keys with application restrictions (#269)

* fixing typo and refoctor for unit testing (#270)

* fix color method name clash and layout adjust (#271)

* Yongmao/layout issue and class rename (#273)

* fix long text height calc error

* rename class

* fiam modal view layout tuning (#274)

* test on device for ios client (#275)

* dynamic testing mode handling (#277)

* main header file comment update and run style.sh (#281)

* honor global firebase auto data collection flag in fiam (#283)

* honor global firebase auto data collection flag in fiam

* address comments

* tuning

* address review comments

* tuning for comments

* Rename Core global data collection switch (#287)

* Support displaying a messages defined as recurring (#286)

* continue

* Adjust some inapp messaging dependeces due to the firebase core changes from the upcoming release

* bump up version for in-app messaging

* Fix impression log clearing race condition bug. (#289)

* fix impression handling race condition bug

* podspec and interacting interfaces for new firebaseinappmessagingdisplay pod (#290)

* create inapp messaging display podspec

* Default fiam display UI implementation (#292)

* Default fiam display UI implementation. Created the new pod for FirebaseInAppMessagingDisplay

* Make FirebaseInAppMessaging headless (#293)

* import path tuning

* log test message events (#296)

* respect fetch wait time from server (#297)

* add changelog.md for fiam headless sdk (#300)

* port the fetch wait time change back into github (#304)

* remove resource bundle check for headless sdk

* fix a bug in which the test-on-device message does not follow action url

* Add category on NSString to interlace two strings, use it to obfuscate clearcut host name

* Use FIR prefix to avoid collisions

* Change method name for getting server hostname

* Delete Swift example project, its coverage is already duplicated in the FIRInAppMessagingDisplay UITests

* Miscellaneous open sourcing cleanup tasks

* Convert FIAM to use the Analytics connector (#336)

* Convert FIAM to use Analytics connector along with converting to the FIRLibrary component registration model.
* Update interop headers for missing methods
* Convert existing unit tests

* Fix style for fiam sources (#342)

* Clean up non-idiomatic ObjC method names

* Clean up Swift test target from Podfile

* Use dummy GoogleService-Info.plist and don't expose api keys (#343)

* Update plist to include fake API keys

* Remove changes in non fiam code from iam-master branch (#350)

* Fix a few method and parameter naming nits

* Fix comment typos in several files

* Delete remaining Swift project files
@firebase firebase locked and limited conversation to collaborators Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants