flutter_background_service icon indicating copy to clipboard operation
flutter_background_service copied to clipboard

How to set title and description for notification

Open ljsharp opened this issue 3 years ago • 1 comments

I set the title and description -

     service.setNotificationInfo(
        title: "Happy Message",
        content: "Tap to return to the app.",
      );

it displays Background Service and preparing respectively. I want to set the title and description for notification so how can I do that, please?

ljsharp avatar Dec 26 '21 09:12 ljsharp

You should call from onStart method to set notification info. When app starts, it called onStart method first. Check example. Good luck

huseyinemreuslu avatar Dec 26 '21 10:12 huseyinemreuslu