Data not being uploaded to realtime database with @react-native-firebase/database #4215
-
I am using @react-native-firebase/database on android for an app to store data. At first day, I was able to store and retrieve the data from firebase but one day after that day, nothing seems to work. When I create a reference to an existing object on database, to retrieve data, it does not retrieve the data even if I store the data manually in firebase console in database. When I use that same reference to store data, it does not store that data to firebase console but that data can be retrieved at that time. It is temporary. That means, when I store some data to some reference, it gets stored temporarily and can be retrieved as long as the app is not restarted. After restarting the app, the data is gone. It never shows up in firebase console. Suggest any fix.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should open a real issue, and follow the issue template, along with this App.js |
Beta Was this translation helpful? Give feedback.
You should open a real issue, and follow the issue template, along with this App.js
Prior to doing that though, you should definitely add error handling to your code. In no place are you doing try/catch and checking for errors.