41 questions
4
votes
1
answer
125
views
Flutter background execution stops after some time (timer & location monitoring not working)
I’m building a Flutter app that needs to run continuously in the background to track whether the user is at the gym and keep a workout timer running.
Flutter background execution stops after some time ...
0
votes
0
answers
47
views
Flutter MethodChannel not working in headless mode (e.g. Workmanager or Push Notifications)
In my Flutter app, I have a native MethodChannel used to send logs from Dart to the Android side, where they're written into a file. This works fine as long as the app is running normally.
However, I ...
1
vote
1
answer
149
views
iOS Background Location Updates Not Working When App is Closed Using Flutter
The provided code snippet is part of a Flutter application that uses the flutter_background_service package to run background tasks. The onStart function is the entry point for the background service, ...
1
vote
0
answers
95
views
Could not resolve main entrypoint function when using flutter_background_service
i am developing an application that will hit an api containing user position from geolocator in background using flutter_background_service but sometimes this error occur and the service wont work.
...
1
vote
1
answer
230
views
How to Get Stream Data from WebSocket which is in Background Service to Main App in Flutter?
I am working on a Flutter project where I am using a background service (with flutter_background_service package) to handle a WebSocket connection. The WebSocket receives updates even when the app is ...
1
vote
1
answer
129
views
How to stop and re-schedule a background service?
So I am using the flutter_background_service package to run a background service for the application. Currently I am using a Timer.periodic method to constantly hit an API every 5 seconds. But now I ...
1
vote
0
answers
88
views
Flutter run time error : Purging debug resources in release build
I am run flutter old project with flutter SDK : 2.5.0 ,
there is no any error (syntax error), but when i was run i got Error
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
Running ...
0
votes
0
answers
192
views
is it possible to excute the dart function After 24 hours when iOS flutter app terminated/Killed?
I'm developing a Flutter application for both Android and iOS where I need to check server reports every 24 hours and notify the user with a local notification if new reports are available. This ...
1
vote
0
answers
192
views
Pedometer package's stepCountStream, listened in a Foreground Service does not trigger onData when phone is sleeping
I'm developing a Flutter app using pedometer package to track steps of the user. I want to count steps when app is closed as well, so I used flutter_background_service package as well in order to use ...
0
votes
0
answers
179
views
Why my flutter track recording app can't run in background?
I am new to the flutter, currently I am handling a flutter project that users can use the google map and geolocator to track down their commuting tracks, however what's the problem is that when I use ...
0
votes
1
answer
384
views
Flutter_background plugin isn't displaying any notification
I am trying to keep my App running at all times in the background, as it needs to check a Webserver for certain kinds of updates every 5 minutes. I followed the documentation of the plugin (https://...
0
votes
4
answers
5k
views
Flutter Android Failed to start foreground service
I'm currently having issues with Flutter background service, the moment the app launches, it crashes within a few seconds. I don't know what I'm doing wrong
AndroidManifest.xml
<uses-permission ...
0
votes
0
answers
708
views
Flutter background location service killed by system(mostly Huawei)
I develop flutter app with background location listener and on most device is all work, but on some device system kill app when app in background(tray/lock screen/another app on foreground). I need ...
0
votes
1
answer
288
views
How to run dart code even when the app is terminated
I have created an Android home screen widget with a button that executes Dart code (specifically, an API call) when clicked. Currently, this functionality only works when the app is in the background. ...
4
votes
0
answers
4k
views
flutter_background_service_android Plugin Throws Exception in Android Devices
I am currently working on a Flutter application that utilizes the flutter_background_service package for running background services. To implement the background service, I have integrated the ...
0
votes
1
answer
2k
views
Flutter_background_service: how to communicate between UI and background thread
The title says almost all - I'm not sure how to call invoke and on methods from the Flutter_background_service plugin, so that UI will be able to receive messages from the background and vice-versa? ...
2
votes
1
answer
260
views
How to play audio with the workmanager package using Flutter?
I want to play 1 (or more) scheduled short audio bells in the executeTask callback from the workmanager package when the user puts in the app in the background.
executeTask callback always fires when ...
1
vote
0
answers
783
views
Current location while in background using GeoLocator
I am using GeoLocator package (version 9.0.2). I am able to get the location as long as the app is in foreground with the permission set to "While Using the App". As soon as the app goes in ...
0
votes
0
answers
248
views
How to insert data into local storage, when a local notification is shown?
I'm working on an app that allows users to set reminders, which basically schedules local notifications. I have a feature in my app, that requires adding some data into the local database, whenever a ...
1
vote
1
answer
526
views
Flutter Background Service does not work on android 8
Service works properly on Android 9 and above facing issues on devices 8<=
Notification disappears in some duration and location services stops
I have also disabled battery optimization but it did ...
8
votes
1
answer
6k
views
FlutterObservatoryPublisher Error on iOS version of Flutter App
I'm getting this error from my flutter debug console:
[VERBOSE-2:FlutterObservatoryPublisher.mm(143)] Could not register as server for FlutterObservatoryPublisher. Check your network settings and ...