You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, to put them in context
I am consuming an API, and I save the data to a local database (Hive), then I get this data using a Stream to the local database.
When I run Workmanager, when the app is minimized (in my case registerPeriodicTask), doing a get of the api and updating the data every 15', the data is updated in the DB but not in the UI (this happens when the app is in the background and you go back to the app -> foreground ).
I have already tried:
Use Provider, and notify listeners
Notify the stream again that there were changes
Use set state when returning the app to foreground
Use AutomaticKeepAliveClientMixin = true
Send updated data to other box in hive, and update my main box in foreground with the new data
But nothing seems to work. Any idea how to correct it?
Hello! I didn't find a solution, I chose to install the "restart-app" package and restart the application when there are changes and the application is in the background.
I have the same question.
I was thinking if it would be possible to send like a message/notification to the UI to notify it of the change. I've read something about isolates being able to communicate via ports, and I believe this is using a separate isolate under the hood, so should we be able to use that to send messages?
Hi, to put them in context
I am consuming an API, and I save the data to a local database (Hive), then I get this data using a Stream to the local database.
When I run Workmanager, when the app is minimized (in my case registerPeriodicTask), doing a get of the api and updating the data every 15', the data is updated in the DB but not in the UI (this happens when the app is in the background and you go back to the app -> foreground ).
I have already tried:
But nothing seems to work. Any idea how to correct it?
This is a basic example of my screen
This is a basic example of mi main
Thanks you.
The text was updated successfully, but these errors were encountered: