'How to turn off debug notifications in workmanager? (Flutter)

I can't get the debug notifications to stop being sent. I've tried setting isInDebugMode to false and also tried completely removing that line, but it keeps sending me notifications (also they seem to send twice). Am I missing something?

This is the relevant code:

void main()
{
  runApp(PromotionProvider(
    child: MaterialApp(
      title: 'Price Point',
      theme: ThemeData(
        primarySwatch: Colors.red,
          backgroundColor: Colors.white,
          appBarTheme: AppBarTheme(elevation: 0.0)
      ),
      home: Home(),
    ),
  ));
  Workmanager.initialize(
    callbackDispatcher, 
    isInDebugMode: false, // this does not work
  );
  Workmanager.registerPeriodicTask(
    "1",
    notificationTask,
    frequency: Duration(minutes: 30),
    constraints: Constraints(
      requiresCharging: false,
      networkType: NetworkType.connected,
    ),
  );
}


Solution 1:[1]

Upgrade to the latest version of workmanager

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Michael Mugadza