-
Notifications
You must be signed in to change notification settings - Fork 433
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
Android build crashes on getting DocumentChange.Type #889
Comments
My environment is here.
I also happen too. This article may be useful. Please support this issue as soon as possible. |
Sorry for the trouble. I've reproduced this and am working on a fix. |
Thank you for report! |
The fix for this issue is currently being reviewed, and we'll include it in our next release. Timing of that next release is complicated by the holidays in the US. You can work around this issue temporarily by inferring the type value from the indexes, like so: public DocumentChange.Type GetChangeType(DocumentChange change) {
if (change.OldIndex < 0) {
return DocumentChange.Type.Added;
} else if (change.NewIndex < 0) {
return DocumentChange.Type.Removed;
} else {
return DocumentChange.Type.Modified;
}
} |
The fix for this issue has been submitted and will be a part of the next release. |
Thank you for early support. |
FYI, we released 7.0.2 today to fix a critical issue (#900). Since this issue has a workaround, it will wait for the next regular release. |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Android build crashes when trying to read ChangeType from QuerySnapshot document changes.
Phone crash log:
It also happens with Firebase Unity quickstarts. Reproduction rate is 100%.
The text was updated successfully, but these errors were encountered: