InvalidOperationException: Don't call Firebase functions before CheckDependencies has finished


原因:Firebase 初期化 処理前に、Firebaseの機能 RemoteConfigを呼び出していたため。

Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => {
  var dependencyStatus = task.Result;
  if (dependencyStatus == Firebase.DependencyStatus.Available) {
    // Create and hold a reference to your FirebaseApp,
    // where app is a Firebase.FirebaseApp property of your application class.
       app = Firebase.FirebaseApp.DefaultInstance;
       // ココで準備完了。実行したい処理を入れる。

    // Set a flag here to indicate whether Firebase is ready to use by your app.
  } else {
      "Could not resolve all Firebase dependencies: {0}", dependencyStatus));
    // Firebase Unity SDK is not safe to use here.