-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to fetch data from firebase but can save data to firebase #1407
Comments
Can we see your code usage please? Those screenshots don't really help sorry! But, failure to read data on both platforms to me would indicate that this is perhaps an issue with your database rules on the Firebase consoles - check your rules, the default ones, for example, require a user to be authenticated. Loving
|
My database rules are well setup. After much testing i think i understand what the problem is but i have no ideal how to fix it. Whenever i start up my react native android server when my screens are loaded some times they fetch the data while others they don't and that point i have to manually close the app and open it again. NOTE : The android server keeps running while i close the app. |
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
@Ehesp I seem to also be running into the same issue. I am trying to run the same code as @Oshianor but unless I close the application on my emulator and open it again, the code only executes once and never executes again upon subsequent refreshes. I am running on Any ideas? |
having the same issue here. Didn't have this problem when using web based firebase npm |
Same issue here, I have to restart the app and emulator in order for the .on() listener to fire. Im running |
I was going to report the same issue. React Native Firebase works, but then on Android after a few JS reloads it stops working. I'm using react-redux-firebase, however I did include this code in my app to verify that this issue is actually in react-native-firebase and not in react-redux-firebase: firebase.firestore().collection('practice').get()
.then(data => console.log(data.docs[0].data()))
.catch(console.error); Of particular note. I notice that when it's working I get data; when it fails I get no response at all. i.e. It does not fail with an error, it simply never resolves the promise. And it doesn't start working again until I force quit the app and reopen it. |
The same issue here. Database works on the first load but stops working after dev app refreshes. I observed this issue after updating to RNFIrebase v5.0.0 |
I have got the same problem. I need to reload whole app to receive the data on componentDidMount |
Hey all, this should be fixed as part of #1619 - you can give it a go on For firestore could you please raise a seperate issue so I can track it and work on it there. Loving
|
same here still |
I'am having the same problem. I was using the latest react-native-firebase version but then i read that downgrading to 5.2.0 solves the problem. It Solves it until syntax error, once i fix my bundling problem firebase database stops working... |
@silvafacundo I have the same problem but with "react-native-firebase": "4.3.8",
if you solve the problem please tell me! |
@anastely I think that the problem is coming from Debuggin JS Remotely. I've managed to get it working by not using that option. Debbugin is pretty tedious, but that was the only solution I've could find |
@silvafacundo uh oh, it's work after uninstalling the app and stoped Debugging JS Remotely, |
@anastely Uhmmm... for me it's working fine, make sure that you are updating the correct path, and that is updating at console.firebase.google.com. |
Issue
Environment
React Native
version:React Native Firebase
Version:Firebase
Module:typescript
?Loving
react-native-firebase
? Please consider supporting them with any of the below:React Native Firebase
andInvertase
on TwitterThe text was updated successfully, but these errors were encountered: