diff --git a/packages/flutter_background_service_android/android/src/main/java/id/flutter/flutter_background_service/BackgroundService.java b/packages/flutter_background_service_android/android/src/main/java/id/flutter/flutter_background_service/BackgroundService.java index 3a8f8ecc..0d9956bd 100644 --- a/packages/flutter_background_service_android/android/src/main/java/id/flutter/flutter_background_service/BackgroundService.java +++ b/packages/flutter_background_service_android/android/src/main/java/id/flutter/flutter_background_service/BackgroundService.java @@ -101,6 +101,7 @@ public void onCreate() { notificationContent = config.getInitialNotificationContent(); notificationId = config.getForegroundNotificationId(); updateNotificationInfo(); + onStartCommand(null, -1, -1); } @Override