I am using the firebase cloud messaging function onBackgroundMessage in my flutter app.
Whenever this function is triggered, I want to queue code to execute 3 minutes in the future. This all is running in the background with my app terminated, so I am wondering what is the best way.
Can I just call...
Future.delayed(Duration(minutes: 3));
Or is it possible that this will not reliably execute.
Should I use a library like workmanager for this?