Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase analytics is not initialized on iOS

See original GitHub issue

Describe the bug Documentation states to use initializeFirebase only for web devices, but i’m getting an initilization problem in iOs too.

To Reproduce Steps to reproduce the behavior:

  1. Launch the application.
  2. Go to Firebase Analytics debug mode, you won’t see any new event incoming.
  3. Go to the Safari’s web inspector and open a debugger for the device.
  4. Go to the console and see the error.

Expected behavior As Android, it should be initialized itself without to do it manually in code.

Screenshots If applicable, add screenshots to help explain your problem. Captura de Pantalla 2020-12-09 a la(s) 14 12 51

Desktop (please complete the following information):

  • OS: Mac OsX 10.15.7
  • Browser Safari
  • Version 14.0.1 (15610., 15610)

Smartphone (please complete the following information):

  • Device: iPhone 8 Plus
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

SalahAdDincommented, Dec 10, 2020

Yeah, both of them we did.

I think i found the problem here: I didn’t enabled the debug mode with the correct command. Now I did it and i can see analytics events in the console: Captura de Pantalla 2020-12-10 a la(s) 15 07 37

After testing it in the console, i will close this issue.

JohnGeorgiadiscommented, Jul 30, 2021

@cyril-colin after more than a year I spent a day trying to figure this out. In the end I just needed to add the pod manually thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot initialization options | Firebase - Google
If you initialize your app without a valid set of Firebase options, new users of your application will experience serious issues. Firebase options...
Read more >
Firebase has not been correctly initialized - Stack Overflow
Yes, i have tried this already. For some reason no matter what i do it says Firebase has not bee correctly initialized. –...
Read more >
firebase_analytics | Flutter Package -
Flutter plugin for Google Analytics for Firebase, an app measurement solution that provides insight on app usage and user ... safety.
Read more >
Google Analytics for Firebase | Event - mParticle documentation
Due to a known issue in the Firebase Android SDK, it is impossible to programatically initialize Firebase at runtime - you must follow...
Read more >
Firebase - Branch Help
This will not change event counts in Firebase, but rather allows you to augment ... null) { if (jsonObject != null) { FirebaseAnalytics...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found