-
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
onSnapshot hanging after killing iOS and restarting #3614
Comments
I'm experiencing a similar thing. When I restart the app on iOS, it hangs and doesn't return an error or anything. But when I reload the app after that initial launch, it starts working normally. |
Hello 👋, to help manage issues we automatically close stale issues.
|
I think this is happening to me also |
This is probably going to be an upstream issue in the underlying SDK - have you searched there @zomars to see if they have anything relevant? https://github.com/firebase/firebase-ios-sdk |
@mikehardy I didn't found anything there, but it may be related to this: https://firebase.google.com/support/release-notes/ios#cloud-firestore
I'll try to manually upgrade the SDK and report back. |
Sounds like a plan - for reference we are using 6.27 in the test suite now and I'm using it locally without issue, so it should be safe though of course test things to make sure. I actually haven't ever suffered a regression in the entire 6.x series so I update pretty confidently whenever it comes out but now that I've said that the next one might bite me. Cheers |
I've followed these steps:
And can confirm that the |
fantastic news, thanks for testing and reporting success for future people |
It seems we're still using 6.25.0?(https://github.com/invertase/react-native-firebase/blob/master/packages/app/package.json#L70) |
Also, for anyone else who stumbles upon this and is wondering exactly how up up the firebase version on their own, this is what Mike was talking about:
|
Test project is already on 6.27 yes, my project as well. Works fine, just they issue them about every 2 weeks upstream and doing the PRs here lags. Any PR to update test project (already done in this case) and Pod dependencies would probably be met with trumpet serenade and angel song :-) |
This bug is still here. I've tested 11.1.0 and almost latest (12.8.0) firebase versions. Only adding "includeMetadataChanges: true" helped. Maybe this moment is already described but this bug exists only for release scheme. Any attpets to get this bug with debug scheme weren't succeded. |
I do not know, this looks like it might need a native reproduction to figure out roughly what layer it is. You might start with a clean reproduction in a react-native-firebase-only app built from https://github.com/mikehardy/rnfbdemo/commits/master/make-demo.sh with nothing but an index.js/App.js to prove it happens with no other modules, if so then I'd try native The native issues list (for a quick look) is https://github.com/firebase/firebase-ios-sdk/issues and a template to try a native reproduction is https://github.com/firebase/quickstart-ios/tree/master/firestore - along with our code here might get a native reproduction pretty quickly. I can't see how this would be at the react-native-firebase level so that's the likely path forward. |
@mikehardy Thank you for instructions. I'll try to reproduce it via "make-demo" |
Issue
Using onSnapshot works when first installing an iOS app with a release scheme, but once the app is killed and restarted a couple of times (1-2 on average), onSnapshot fails to return data or throw an error.
After extensive testing I found that setting
includeMetadataChanges
to true prevented this issue, but does lead to more events than desired.Project Files
Javascript
Click To Expand
package.json
:iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 6.7.1
Firebase
module(s) you're using that has the issue:Firestore
TypeScript
?Y
&3.7.3
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: