I have been using Firebase's realtime database for a while now on my app (java), but today it stopped working. I chacked other posts from this site and nothring really helped.
It doesn't save my data, not even parts of code that used to save fine.
- Checked the status on the website, everything seems fine.
- My database rules are as follows:
{ "rules": { ".read": true, ".write": true } }
- I replaced the google-services.json just in case something of the database changed somehow, but it has not helped.
- The code that I have been usin were like this:
FirebaseDatabase database = FirebaseDatabase.getInstance(); DatabaseReference mRef = database.getReference().child("characters/2/name"); mRef.setValue(most_val_q); mRef.push();
- Checked the Firebase section in Tools to see if it disconnected, but it shows as connected.
- Chacked the build.gradle to see if it was a version issue of sorts? It said there was a new verison and all, changed it to the new one but still doesn't work. So I put the old one, just in case.
Источник: https://stackoverflow.com/questions/780 ... ng-anymore
Мобильная версия