flipper icon indicating copy to clipboard operation
flipper copied to clipboard

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

Open mgoyanes opened this issue 4 years ago • 2 comments
trafficstars

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

mgoyanes avatar Feb 06 '21 19:02 mgoyanes

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 avatar Feb 24 '21 14:02 mweststrate

I want to work on this issue provide me a brief information

Shiva710211 avatar Jun 19 '24 15:06 Shiva710211