Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is it possible to notify database plugin that database has been updated. #1898

Open
mgoyanes opened this issue Feb 6, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mgoyanes
Copy link

mgoyanes commented Feb 6, 2021

Whenever we switch to the database plugin or if we click on the refresh button

connection.receive(
        DATABASE_LIST_COMMAND,
....

is called thus, the info about our database is updated in the desktop client.

Is it possible to do the other way around, that is, notify the client that it should update the UI because our database has changed, thus not requiring to press the refresh button to see the most up to date information?

Thanks

@mweststrate
Copy link
Contributor

mweststrate commented Feb 24, 2021

Flipper support bidirectional transportation, so if there is a specific event on the database you would like to trigger this upon, I think should be able to subscribe to it and notify the desktop plugin using connection.send (and using client.receive in the desktop plugin implementation). The sources of the Database plugin can be found here (Android) and here (Desktop)

@mweststrate mweststrate added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants