Skip to content Skip to sidebar Skip to footer

Google Firebase Real-time Database Not Working As Everything Is Set Correctly

I'm working on an android application, i'm trying to upload my data into the firebase Realtime Database , but it is not showing up there everything is set correctly, all dependenci

Solution 1:

firebaser here

If you downloaded the google-services.json before you created the database, the SDK won't be able to determine the correct database URL - since your database instance is not in the default region.

You have two options to fix it in that case:

  1. You can specify the full database URL in the call to getInstance() like this: FirebaseDatabase.getInstance("your database URL").getReference()
  2. You can download an updated google-services.json after you created the database, and make sure you app uses that file.

It's pretty easy to miss this condition right now, as the relevant warning is logged as a debug message. We're working on surfacing the message more explicitly, but in the meantime the above should also work.

Post a Comment for "Google Firebase Real-time Database Not Working As Everything Is Set Correctly"