title: Unable to view Firebase Analytics Debug View React Native
body: <p>I've followed multiple tutorials and read multiple Stackoverflow posts, but no matter what I do, I can't get anything to show up in my DebugView for my iOS app using RNFireBase. I would really appreciate some help with this. I've lost days trying to figure this out and I have no idea what is wrong. I tried on both a simulator and a physical device and no luck with either.</p>
  <p>I'm getting logging messages to show up in my console in XCode, but nothing shows up in the Firebase Console. Here are the messages I get locally when using an event:</p>
  <h2>React Native</h2>
  <pre class="lang-js prettyprint-override"><code>&lt;TouchableOpacity
    onPress={() =&gt;
      analytics().logSelectContent({
        content_type: &quot;clothing&quot;,
        item_id: &quot;abcd&quot;,
      })
    }
  &gt;
    &lt;Text&gt;Log message&lt;/Text&gt;
  &lt;/TouchableOpacity&gt;;
  </code></pre>
  <h2>Logs</h2>
  <pre><code>2020-05-15 12:22:26.486761-0400 Example App[23464:8820959] 6.13.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: app, select_content, {
      content_type = clothing;
      ga_event_origin (_o) = app;
      ga_screen_class (_sc) = UIViewController;
      ga_screen_id (_si) = -3307323385789565728;
      item_id = abcd;
  }
  2020-05-15 12:22:26.487676-0400 Example App[23464:8820959] 6.13.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: select_content, {
      content_type = clothing;
      ga_debug (_dbg) = 1;
      ga_event_origin (_o) = app;
      ga_realtime (_r) = 1;
      ga_screen_class (_sc) = UIViewController;
      ga_screen_id (_si) = -3307323385789565728;
      item_id = abcd;
  }
  2020-05-15 12:22:26.500453-0400 Example App[23464:8820959] 6.13.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: select_content, {
      content_type = clothing;
      ga_debug (_dbg) = 1;
      ga_event_origin (_o) = app;
      ga_realtime (_r) = 1;
      ga_screen_class (_sc) = UIViewController;
      ga_screen_id (_si) = -3307323385789565728;
      item_id = abcd;
  }
  2020-05-15 12:22:26.502567-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9828788042068481
  2020-05-15 12:22:26.502616-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.9828788042068481
  2020-05-15 12:22:27.497172-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
  2020-05-15 12:22:27.497304-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
  2020-05-15 12:22:27.497444-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS023033] Starting data upload
  2020-05-15 12:22:27.501020-0400 Example App[23464:8821128] 6.13.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: select_content, {
      content_type = clothing;
      ga_debug (_dbg) = 1;
      ga_event_origin (_o) = app;
      ga_realtime (_r) = 1;
      ga_screen_class (_sc) = UIViewController;
      ga_screen_id (_si) = -3307323385789565728;
      item_id = abcd;
  }
  2020-05-15 12:22:27.511485-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 499
  2020-05-15 12:22:27.512391-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 38, 1589559746485
  2020-05-15 12:22:27.518879-0400 Example App[23464:8821128] 6.13.0 - [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 44.21102094650269
  2020-05-15 12:22:27.519180-0400 Example App[23464:8820960] 6.13.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1589559747518, &lt;APMPBMeasurementBatch: 0x2808513f0&gt;
  2020-05-15 12:22:27.524885-0400 Example App[23464:8820960] 6.13.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
  2020-05-15 12:22:27.607462-0400 Example App[23464:8820960] 6.13.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
  2020-05-15 12:22:27.674761-0400 Example App[23464:8821408] 6.13.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
  2020-05-15 12:22:27.679982-0400 Example App[23464:8821408] 6.13.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.1942161321640015
  2020-05-15 12:22:27.680071-0400 Example App[23464:8821408] 6.13.0 - [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.1942161321640015
  2020-05-15 12:22:27.688291-0400 Example App[23464:8821408] 6.13.0 - [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
  2020-05-15 12:22:27.688364-0400 Example App[23464:8821408] 6.13.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
  </code></pre>
  <h2>Here's everything I've done:</h2>
  <h3>I modified my <code>AppDelegate.m</code></h3>
  <pre><code>// imports
  #import &lt;Firebase.h&gt; // Imported Firebase.h
  // more imports
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      if ([FIRApp defaultApp] == nil) {
          [FIRApp configure];
      }
  // ... rest of my didFinishLaunchingWithOptions
  </code></pre>
  <h3>I added GoogleService-Info.plist to my app target. I then followed <a href="https://stackoverflow.com/a/55352833/6942666">this post</a> and:</h3>
  <blockquote>
  <p>Now it doesn't matter much but still for the people who are getting errors on this issue. Debug mode of firebase analytics does not work sometimes due to issue in GoogleServices-Info.plist file Simply makes these 2 changes.</p>
  <p>Set IS_ANALYTICS_ENABLED to YES</p>
  <p>Set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATE to NO</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/ylaw6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ylaw6.png" alt="enter image description here" /></a></p>
  <h3>Removing <code>FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED</code> entirely</h3>
  <p>I then removed <code>FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED</code> from my .plist like <a href="https://stackoverflow.com/a/55370967/6942666">this post</a> suggested. Still not working.</p>
  <h3>Made sure there was no <code>OS_ACTIVITY_MODE:disable</code> enabled like <a href="https://stackoverflow.com/a/48913609/6942666">this post</a> said</h3>
  <blockquote>
  <p>Make sure to remove the OS_ACTIVITY_MODE:disable from the Environment Variables in your project scheme if you added it at some point.</p>
  </blockquote>
  <h3>Set environment variables</h3>
  <p><a href="https://i.stack.imgur.com/689l5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/689l5.png" alt="enter image description here" /></a></p>
  <h3>Podfile.lock relevant section</h3>
  <pre><code>- Firebase/Analytics (6.13.0):
      - Firebase/Core
    - Firebase/Core (6.13.0):
      - Firebase/CoreOnly
      - FirebaseAnalytics (= 6.1.6)
    - Firebase/CoreOnly (6.13.0):
      - FirebaseCore (= 6.4.0)
    - FirebaseAnalytics (6.1.6):
      - FirebaseCore (~&gt; 6.4)
      - FirebaseInstanceID (~&gt; 4.2)
      - GoogleAppMeasurement (= 6.1.6)
      - GoogleUtilities/AppDelegateSwizzler (~&gt; 6.0)
      - GoogleUtilities/MethodSwizzler (~&gt; 6.0)
      - GoogleUtilities/Network (~&gt; 6.0)
      - &quot;GoogleUtilities/NSData+zlib (~&gt; 6.0)&quot;
      - nanopb (= 0.3.9011)
    - FirebaseCore (6.4.0):
      - FirebaseCoreDiagnostics (~&gt; 1.0)
      - FirebaseCoreDiagnosticsInterop (~&gt; 1.0)
      - GoogleUtilities/Environment (~&gt; 6.2)
      - GoogleUtilities/Logger (~&gt; 6.2)
    - FirebaseCoreDiagnostics (1.2.4):
      - FirebaseCoreDiagnosticsInterop (~&gt; 1.2)
      - GoogleDataTransportCCTSupport (~&gt; 3.0)
      - GoogleUtilities/Environment (~&gt; 6.5)
      - GoogleUtilities/Logger (~&gt; 6.5)
      - nanopb (~&gt; 0.3.901)
    - FirebaseCoreDiagnosticsInterop (1.2.0)
    - FirebaseInstanceID (4.2.7):
      - FirebaseCore (~&gt; 6.0)
      - GoogleUtilities/Environment (~&gt; 6.0)
      - GoogleUtilities/UserDefaults (~&gt; 6.0)
  </code></pre>