final androidConfig = FlutterBackgroundAndroidConfig(
notificationTitle: "Title of the notification",
notificationText: "Text of the notification",
notificationImportance: AndroidNotificationImportance.Default,
notificationIcon: AndroidResource(
name: 'background_icon', defType: 'drawable'), // Default is ic_launcher from folder mipmap
);
FlutterBackground.initialize(androidConfig: androidconfig);
But androidConfig is defined with a big C. So FlutterBackground.initialize(androidConfig: androidconfig) should use androidConfig instead of androidconfig
In the
README.md
there is this code blockBut
androidConfig
is defined with a bigC
. SoFlutterBackground.initialize(androidConfig: androidconfig)
should useandroidConfig
instead ofandroidconfig