MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.
https://geofirestore.com
MIT License
505 stars 58 forks source link

Geofirestore android not compatiable with geofirestore js #200

Closed RafiHasani closed 3 years ago

RafiHasani commented 3 years ago

[REQUIRED] Describe your environment

[REQUIRED] Describe the problem

Geofirestore android library data structure is not compatible with javascript data.

geofirestore js lib uses this data structured:

interface GeoDocumentData { g: { geohash: string; geopoint: GeoPoint; };

} however android lib stores data interface GeoDocumentData { g: string; l: GeoPoint; }; }

actually it is not a bug. but i tried this for 2 week then i realized the compatibility issue. could you make some changes in android java library so it work together properly. I am using geofirestore android java version with cloud function in JavaScript. so please direct me if there is minor changes i could make in my code. because i am doing my final year project and i am stuck on this. thank you for consideration. with regards

MichaelSolati commented 3 years ago

@RafiHasani I'm sorry to say, I don't maintain the Android library. Its a completely separate project maintained here. Unfortunately I doubt you'll get proper cross library support. However you could consider using Firebase's Cloud Functions in your Android app to get and set data to your Firestore Collection and use this library in the Cloud Functions.