I want to write data in Firebase Realtime Database from Android.I did the following things.
Created Project in firebase
Configured and downloaded the json file and pasted in the app directory
Did all others stuffs.
EDITED THE RULES CORRECTLY
Then I am trying to run the most simplest code provided in the docs
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("message");
myRef.setValue("Hello, World!");
Still not working. The database is still showing empty. Somebody please help. Thank you