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, I want to update a widget even when the app is in terminated state, but it seems like it only works when app is on either foreground or background.
This issue might be a duplicate of this one, but I opened up a new issue to provide some code.
I want to update the widget even when the app is closed.
I am not using flutter_workmanager since periodic update is not needed at this moment.
Btw, I appreciate your library!
The text was updated successfully, but these errors were encountered:
Gummybearr
changed the title
Widget is not updated when app is in terminated state
[Android] Widget is not updated when app is in terminated state
Oct 15, 2023
Android Home widgets can only be updated once an hour on the most android devices. Alarm Manager is a common method to update them more frequently. The home_widget is working, just wait 30-60 minutes ;)
Hi, I want to update a widget even when the app is in terminated state, but it seems like it only works when app is on either foreground or background.
This issue might be a duplicate of this one, but I opened up a new issue to provide some code.
android side code
AndroidManifest.xml
AppWidgetProvider.kt
flutter side code
main.dart
pubspec.yaml
I want to update the widget even when the app is closed.
I am not using flutter_workmanager since periodic update is not needed at this moment.
Btw, I appreciate your library!
The text was updated successfully, but these errors were encountered: