fluttercommunity / flutter_workmanager

A Flutter plugin which allows you to execute code in the background on Android and iOS.
825 stars 247 forks source link

Can I use it to implement the reload timeline for iOS widgets? #531

Open GanZhiXiong opened 5 months ago

GanZhiXiong commented 5 months ago

This is a great plugin.

Requirement

Implement a widget that supports Android and iOS. I want to use it and flutter_workmanager to request the HTTP interface to update the data on the widget every 15 minutes.

https://github.com/ABausG/home_widget/issues/202

alexbejann commented 2 months ago

Hey @GanZhiXiong, Your request seems a bit outside the scope of this package. You can achieve what you're asking for by using a simple Provider/Cubit or any other state management solution (up to you) in combination with workmanager.