Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Hooking point for updateLocationInfo method #87

Closed
@vanniktech

Description

@vanniktech

I'd like to have an entry point into the updateLocationInfo method.

Our use case:

All of our data is structured in a real-time database. Geohashes and data are not separated and hence data can get changed without a location change.

Example: We have point of interests that have a certain coordinate. Within those pois, we have data associated and that data can get changed. With the current implementation, we'll never see a change event for this in our listener since the location stayed the same.

Our solution: We extended the changedLocation check to also check for a versionCode that gets incremented by every data change.

Proposal: Some generic api that can handle this and other use cases. Possibly there's a method that takes the old and current snapshot and can then return an enum whether things have been added, changed, removed or nothing (null).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions