-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
bug: Does not return collection data when more than one query constraint #540
Comments
+1 |
Hello, I would like to chime in here. I have a query issue on Android that has me running in circles. In my Ionic/Capacitor Angular application for Android, I have a method to load collection data by the user who is signed in.
The problem started when I added 'where' query. When run in the browser it first asked me to create a composite query index in Firebase to run the query. Once I added the new index, I saw the data load on that page. When I run the same code on my Android Phone I get this error:
the 'getCollection()' method is in a service and the method is:
I have no idea what the null object reference could be. Here is what my index looks like from the Firebase Console Any help would be greatly appreciated. Thanks for your time. Please let me know if I can provide anything further. This is a private code base so I can't link the repo. |
I will probably work on the Firestore issues next week. |
Update: I modified Here is the method that works on my Android Device:
I hope this helps. |
@Tsquared86 I close this issue as duplicate of #554. @jwuliger Please create a new issue and provide some code to reproduce this issue. I do not know the implementation of your |
Plugin(s)
Version
Latest
Platform(s)
Current behavior
I am returning data from a collection and using the query constraint "and" to compare multiple fields. This works fine on all platforms, but when on android this does not return data.
Expected behavior
IT should work like on web and iOS returning data.
Reproduction
https://github.com/tsquared86
Steps to reproduce
try to do a query of a collection with an and comparison of 2 or more constraints
Other information
No response
Capacitor doctor
Latest Dependencies:
@capacitor/cli: 5.6.0
@capacitor/core: 5.6.0
@capacitor/android: 5.6.0
@capacitor/ios: 5.6.0
Installed Dependencies:
@capacitor/cli: 5.0.4
@capacitor/core: 5.0.4
@capacitor/android: 5.0.4
@capacitor/ios: 5.0.4
Before submitting
The text was updated successfully, but these errors were encountered: