Closed angelru closed 1 year ago
Instead of using nested queries. Try to get the document async by path (string).
So, first create the path variable set it as it should be for example: $"{Settings.FollowingCollection}/{MyUserId()}/.....
@vhugogarcia
var document = await CrossCloudFirestore.Current.Instance
.Document($"{Settings.FollowingCollection}/{MyUserId()}/{Settings.UserFollowingCollection}/{userId}")
.GetAsync();
Does this really make a difference? I do not understand.
This usually happens when the application goes to OnSleep and then OnResume or it has not been opened for a long time. I think Firestore thinks there is no connection but there is. I don't know how to fix this. What I don't understand is why it looks at the cache when there is an internet connection.
When resuming the application should we call EnableNetworkAsync? Wait a few seconds for Firestore to connect?
@f-miyu know something about it? Does it have to do with the android SDK which is out of date?
Hi, from time to time I get this random error. Anyone else have happened? I have to say, that other parts of the application works.
This is the method that sometimes gives that exception