firebaseunity-game-enginefirebase-realtime-database

DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your GetInstance() call


I'm just testing if I could try to send data in my firebase database but I'm stuck at fixing this kind of error. "Failed to get to get FirebaseDatabase instance". I have no idea what's happening.

void TryDataSend(){   
   DatabaseReference root = FirebaseDatabase.DefaultInstance.RootReference;
}

Solution

  • To be able to connect to the Firebase database, the FirebaseDatabase object needs to know the URL of that database. It typically will:

    The error message seems to indicate that neither of these things happened, so I recommend checking the links and see if you've taken all the steps.