Foreground Service stops after 5 minutes.
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.
bro i have also same issue did you problem gets solved
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.
Aqui do mesmo jeito... Não sei se é 5 minutos exatamente mas ele para e é no Android
Have you come to any solution?
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: @.***>
Actually I want to stay connected to mqtt all the time to monitor calls
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: @.***>