flutter_background_service icon indicating copy to clipboard operation
flutter_background_service copied to clipboard

Foreground Service stops after 5 minutes.

Open yash-segnotech opened this issue 1 year ago • 7 comments

Foreground service stops after around 5 minutes if the screen is locked and charger not connected. i have tried disabling battery optimization for the app but it didn't help.

yash-segnotech avatar Oct 19 '24 09:10 yash-segnotech

bro i have also same issue did you problem gets solved

BIBS23 avatar Nov 04 '24 04:11 BIBS23

bro i have also same issue did you problem gets solved i have used another package named flutter_foreground_task. it works continuously in background without interruption, and if stops it will auto start the service again.

yash-segnotech avatar Nov 04 '24 06:11 yash-segnotech

Aqui do mesmo jeito... Não sei se é 5 minutos exatamente mas ele para e é no Android

carlosbatistadev avatar Nov 14 '24 18:11 carlosbatistadev

Have you come to any solution?

ygor-dextak avatar Apr 02 '25 17:04 ygor-dextak

I have used another package called flutter foreground task

If you want to get location only you can use it by geolocator package too there is an option to fetch location in backgroun

On Wed, 2 Apr, 2025, 11:25 pm ygor-dextak, @.***> wrote:

Have you come to any solution?

— Reply to this email directly, view it on GitHub https://github.com/ekasetiawans/flutter_background_service/issues/488#issuecomment-2773308397, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7NFKCXZFEZZZNDIUYN6B32XQQB3AVCNFSM6AAAAABQHKVY4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZTGMYDQMZZG4 . You are receiving this because you commented.Message ID: @.***> [image: ygor-dextak]ygor-dextak left a comment (ekasetiawans/flutter_background_service#488) https://github.com/ekasetiawans/flutter_background_service/issues/488#issuecomment-2773308397

Have you come to any solution?

— Reply to this email directly, view it on GitHub https://github.com/ekasetiawans/flutter_background_service/issues/488#issuecomment-2773308397, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7NFKCXZFEZZZNDIUYN6B32XQQB3AVCNFSM6AAAAABQHKVY4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZTGMYDQMZZG4 . You are receiving this because you commented.Message ID: @.***>

BIBS23 avatar Apr 02 '25 19:04 BIBS23

Actually I want to stay connected to mqtt all the time to monitor calls

ygor-dextak avatar Apr 02 '25 19:04 ygor-dextak

Then you wanna use flutter foreground task its a good package

On Thu, 3 Apr, 2025, 12:44 am ygor-dextak, @.***> wrote:

Actually I want to stay connected to mqtt all the time to monitor calls

— Reply to this email directly, view it on GitHub https://github.com/ekasetiawans/flutter_background_service/issues/488#issuecomment-2773473254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7NFKDCPU6PAQECJ5WRJFL2XQZKBAVCNFSM6AAAAABQHKVY4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZTGQ3TGMRVGQ . You are receiving this because you commented.Message ID: @.***> [image: ygor-dextak]ygor-dextak left a comment (ekasetiawans/flutter_background_service#488) https://github.com/ekasetiawans/flutter_background_service/issues/488#issuecomment-2773473254

Actually I want to stay connected to mqtt all the time to monitor calls

— Reply to this email directly, view it on GitHub https://github.com/ekasetiawans/flutter_background_service/issues/488#issuecomment-2773473254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7NFKDCPU6PAQECJ5WRJFL2XQZKBAVCNFSM6AAAAABQHKVY4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZTGQ3TGMRVGQ . You are receiving this because you commented.Message ID: @.***>

BIBS23 avatar Apr 02 '25 19:04 BIBS23