Skip to content Skip to sidebar Skip to footer

Android Geofire Onkeyentered Not Trigged

The android geofire onKeyEntered is never executed for matching queryLocation. But onGeoQueryReady method is executed. so when I click on the menu bottombar, the addGeoQueryEventLi

Solution 1:

Your JSON is missing the g keys, which are the geohashes that Geofire uses to query. Without the g keys it won't find any keys in any query.

For an example of how to use Geofire to set a location in the database, see the documentation:

geoFire.setLocation("firebase-hq", newGeoLocation(37.7853889, -122.4056973));

If you want to know what setLocation does, see its code: https://github.com/firebase/geofire-java/blob/8385c3148f816807ea3e1873c5e3772d76856057/src/main/java/com/firebase/geofire/GeoFire.java#L162

Post a Comment for "Android Geofire Onkeyentered Not Trigged"