initialize method

  1. @override
Future<bool> initialize({
  1. required String notificationTitle,
  2. required String notificationMessage,
})
override

Implementation

@override
Future<bool> initialize({
  required String notificationTitle,
  required String notificationMessage,
}) async {
  if (Dart.isWeb) {
    return false;
  }
  if (Dart.isAndroid) {
    return await FlutterBackground.initialize(
      androidConfig: FlutterBackgroundAndroidConfig(
        notificationTitle: notificationTitle,
        notificationText: notificationMessage,
      ),
    );
  }

  return false;
}