Closed AhsanSarwar45 closed 1 month ago
@AhsanSarwar45
version 7.1.0
you can change buttons while the service is running.
FlutterForegroundTask.updateService(
notificationButtons: [
const NotificationButton(id: 'btn_bye', text: 'bye'),
],
);
Hi, is it possible to dynamically change the buttons or their text? I am trying to implement a foreground notification for a timer, and I need to change the button label to 'pause' and 'resume' depending on the state.