question-mark
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.

Don't call Firebase functions before CheckDependencies has finished

See original GitHub issue

09-07 10:59:28.508 12117-12176/? E/Unity: InvalidOperationException: Don’t call Firebase functions before CheckDependencies has finished at Firebase.FirebaseApp.ThrowIfCheckDependenciesRunning () [0x00000] in <filename unknown>:0 at Firebase.FirebaseApp.GetInstance (System.String name) [0x00000] in <filename unknown>:0 at Firebase.FirebaseApp.get_DefaultInstance () [0x00000] in <filename unknown>:0 at Firebase.Auth.FirebaseAuth.get_DefaultInstance () [0x00000] in <filename unknown>:0 at Manager.FirebaseManager.FirebaseAuthPlayGames () [0x00000] in <filename unknown>:0 at Manager.FirebaseManager.<Initilization>m__1 (Boolean success) [0x00000] in <filename unknown>:0 at GooglePlayGames.PlayGamesPlatform+<Authenticate>c__AnonStorey1.<>m__0 (Boolean success, System.String msg) [0x00000] in <filename unknown>:0 at GooglePlayGames.Native.NativeClient+<InvokeCallbackOnGameThread>c__AnonStorey1`2[System.Boolean,System.String].<>m__0 () [0x00000] in <filename unknown>:0 at GooglePlayGames.OurUtils.PlayGamesHelperObject.Update () [0x

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kaozgaiacommented, Sep 14, 2018

I have the same problem today and fixed with the next steps, my app uses Firebase Analitycs and Firebase Auth, from the quick start guide on each example the devs call this method

Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => {})

ok… this is correct if you have only one part of Firebase running in you project, but in my case, im using two parts, so from Auth, i delete the duplicated call to Firebase.FirebaseApp.CheckAndFixDependenciesAsync() and just calling it in the Analitycs script.

Then when firebase ends it’s configuration on the Analitycs script, i call my Auth script but just the function InitializeFirebaseAuth.

And that fix it for me, maybe it will help you.

1reaction
albertonetocommented, Oct 2, 2018

thanks @kaozgaia! also solved my case 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deal with “Don't call Firebase functions before ...
How to deal with “Don't call Firebase functions before CheckDependencies has finished” in Unity project.
Read more >
Android initialization problem
This means that we see 'InvalidOperationException: Don't call other Firebase functions while CheckDependencies is running' when the app runs ...
Read more >
Unity3D firebase AUTH not working on ANDROID
Your fix is to basically call CheckAndFixDependenciesAsync . What this is doing is that on Android, Firebase depends on Google Play Services ( ......
Read more >
Don't call Firebase functions before CheckDependencies ...
Don't call Firebase functions before CheckDependencies has finished.
Read more >
Don't call Firebase functions before CheckDependencies has ...
概要. InvalidOperationException: Don't call Firebase functions before CheckDependencies has finished. Firebase を使用しているプロジェクトで ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found