Open zoro238 opened 5 years ago
its is the same issue as #13
yes but i am used 18.0.1 and same probem
i search slove my problem
I have the same problem.
zoro238, did you solve this mistake?
I have the same problem.
zoro238, did you solve this mistake?
no
@zoro238 what version of GeoFirestore are you using, try the last 1.5.0 and let us know if it solves the problem
it only works this way
geoFirestore.setLocation("k", new GeoPoint(37.7853889, -122.4056973), new GeoFirestore.CompletionListener());
This will work, but no efficient. It will stop the app from crashing. But it will not set the location directly from your app, you will have to set the collection & document name manually and then run your to setLocation & you will get the co-ordinates in your database.
I use it this way CollectionReference mDocRef = FirebaseFirestore.getInstance().collection("mycollection"); GeoFirestore geofire = new GeoFirestore(mDocRef); geofire.setLocation("mystring", new GeoPoint(mLastLocation.getLatitude(), mLastLocation.getLongitude()));
am listening to the oncomplete listener but that works well for me.
I use it this way
CollectionReference mDocRef = FirebaseFirestore.getInstance().collection("mycollection"); GeoFirestore geofire = new GeoFirestore(mDocRef); geofire.setLocation("mystring", new GeoPoint(mLastLocation.getLatitude(), mLastLocation.getLongitude()));
am listening to the oncomplete listener but that works well for me.
Thanks Egesa its working fine now.
When you execute the command to write to Firestore the application collapses. Note that firebase works perfectly.
Error