-
Notifications
You must be signed in to change notification settings - Fork 271
Update location without remove data #134
Comments
@inromualdo thanks for the suggestion. It does seem like here: We use @vanniktech am I being dumb? Is there a reason why |
Good question. Honestly I have no idea since I've never used Geofire for writing. |
Can we add |
There is no way to store additional information about objects in the same location as the geohashes. If you need to store additional information, store it in a separate node with the same key as you use in Geofire. |
But why this listener |
It says that the new API is read only. |
In the Read me: https://github.com/firebase/geofire-java#data-events
|
@m7mdyahia traditionally GeoFire stores the geo information at a separate location from the actual data. Some users override this and store the geo information and the data together. In these cases they can use the other kind of listener to get a full |
…ad of keyRef.setValue also fixes a huge amount of unnecessary 'onDataExited(DataSnapshot dataSnapshot)' events which has not been reported yet. keyRef.updateChildren understands if the data needs to be inserted or updated. No need to use setValue here. Since priorities are not relevant anymore (https://stackoverflow.com/questions/31577915/what-does-priority-mean-in-firebase) i decided to not consider them anymore.
@samtstern Is @jwiesmann 's pull request going to be merged anytime soon? It was submitted by jwiesmann on the 1st of Sept. Swift/Obj-C and JS are getting updated regularly though. |
@mcg95 I would like to merge that PR but we basically have a big, fundamental problem in geofire-java right now. The library was built to serve Java Server and Android Java users at the same time. It relied on a coincidence: the Android and Java SDKs for Firebase RTDB had all the same signatures. This is no longer true. The Android and Java Admin SDKs have diverged (for good reasons) so this can no longer be one library. Before we can really make any more improvements, we have to split the whole library up into |
@samtstern Oh okay. Is there any approximate ETA for the release of this? Maybe 1 or 2 months? |
This is the solution I adopted for this : |
I have this:
If i call setLocation to update location, it will remove username and other.
The text was updated successfully, but these errors were encountered: