1

I want to trigger some code of my app on a daily basis.

Is there something similar to silent push notifications on Flutter, that will trigger part of the code, event when app is closed?

I already reviewed package flutter_local_notifications but there is not anything like silent or invokeScheduled.

Maciej Pszczolinski
  • 1,623
  • 1
  • 19
  • 38

1 Answers1

-1

To schedule background task at regular basis use workmanager.

Workmanager().registerPeriodicTask(
  "periodic-task-identifier", 
  "simplePeriodicTask", 
  frequency: Duration(hours: 24),
)
user18309290
  • 5,777
  • 2
  • 4
  • 22