From 1a1e3527465a4ede4c188b4e1aa51ce552e697c1 Mon Sep 17 00:00:00 2001 From: Eka Setiawan Saputra Date: Thu, 17 Mar 2022 22:40:09 +0700 Subject: [PATCH] fix: method channel --- .../src/method_channel_flutter_background_service.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/flutter_background_service_platform_interface/lib/src/method_channel_flutter_background_service.dart b/packages/flutter_background_service_platform_interface/lib/src/method_channel_flutter_background_service.dart index 5452b6ae..f720ae09 100644 --- a/packages/flutter_background_service_platform_interface/lib/src/method_channel_flutter_background_service.dart +++ b/packages/flutter_background_service_platform_interface/lib/src/method_channel_flutter_background_service.dart @@ -130,8 +130,11 @@ class MethodChannelFlutterBackgroundService } @override - Future configure({required IosConfiguration iosConfiguration, required AndroidConfiguration androidConfiguration}) { - // TODO: implement configure - throw UnimplementedError(); + Future configure({ + required IosConfiguration iosConfiguration, + required AndroidConfiguration androidConfiguration, + }) async { + _setupMain(); + return false; } }