ekasetiawans / flutter_background_service

266 stars 188 forks source link

Service already running, using existing service #296

Open athenawisdoms opened 1 year ago

athenawisdoms commented 1 year ago

In my debug logs, I notice this message produced every 5 seconds:

V/BackgroundService(20291): Service already running, using existing service

Should we be concerned? Is there anything we can/should do to fix this issue?

Using

Thank you :)

bradrushworth commented 1 year ago

This is happening to me also.

Clement-Marchais-Wiztivi commented 1 year ago

Any news about this log ?

Djihanegh commented 1 year ago

This is happening with me also

unleed-l commented 1 year ago

Happening to me also. I'm using an EventChannel in MainActivity and in other packages I've seen issues about 2 background services where only 1 works, I don't know if it's related.

Daniel-Genkin commented 1 year ago

Looks like it has something to do with this:

https://github.com/ekasetiawans/flutter_background_service/blob/52dab703984ca301766051a75bddc2d61a4b8d43/packages/flutter_background_service_android/android/src/main/java/id/flutter/flutter_background_service/WatchdogReceiver.java#L36-L37

AmmarHammoud commented 1 year ago

I have the same issue, any updates about solving this?

AmeerSafdar commented 1 year ago

any solution about this??

ramaatamai commented 3 weeks ago

final service = FlutterBackgroundService(); FlutterBackgroundService().invoke("setAsBackground");

Future.delayed(Duration(seconds: 2), () async {
  service.startService();
service.invoke('startTaskWithJson', json);
});

when i tried to start the service same issue coming,Any solution?