41 questions
4
votes
1
answer
126
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
1
answer
103
views
iOS background location works in Debug but not in Release (Flutter)
I’m using Flutter with flutter_background_service and geolocator to get location updates in the background.
In debug mode, background location works fine even when the app is minimized or the screen ...
0
votes
0
answers
49
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 ...
0
votes
0
answers
58
views
Bug Report: Foreground Service Crash on Android 14+ (API 34+) with mediaProjection due to Missing Permissions
When attempting screen sharing using flutter_webrtc on Android 14 (API 34) or higher, the app crashes with a SecurityException because the required foreground service permissions for mediaProjection ...
1
vote
1
answer
150
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, ...
0
votes
0
answers
43
views
sip in background flutter
I have a problem when I try to pass my sip service in the background.
I'm using the flutter_background_service: ^5.0.10 plugin, I've followed the documentation scrupulously for the implementation of ...
1
vote
0
answers
96
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
0
answers
362
views
Flutter app crashes: Context.startForegroundService() did not then call Service.startForeground()
I am using flutter background service to run a beacon scan in the background and in the foreground when the app is disconnected.
I get the folowing response when the app crashes. The app only occurs ...
1
vote
1
answer
237
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
50
views
Why I did not get the latest data from Shared preferences when storing data from firebase background message?
I`m trying to store the newest data came from firebase notify while the app is in background or fully closed like this:
@pragma('vm:entry-point')
static Future<void> ...
1
vote
1
answer
130
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 ...
0
votes
0
answers
138
views
Enable Background Processing in iOS Flutter app
I am developing a timer app in iOS using Flutter. User can also choose to run the timer with background music.
When I run the app on debug mode by connecting a physical device, the app (timer) works ...
1
vote
0
answers
90
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 ...
1
vote
0
answers
113
views
FlutterBackgroundTask - Issue in android 14 (API 34) (flutter_background_task)
We were trying to enable screen share feature in a video conference. It need to run a service in the background. So using this package enabled the feature, but when changed the 'targetSdkVersion' ...
0
votes
0
answers
194
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 ...
0
votes
0
answers
362
views
launch an application(or a screen) from flutter background service
I would like to create a service that will run in the background and whose purpose is to detect a ShakeDetector event (check if the User shakes his phone). After detecting the “Shake” event, I'd like ...
1
vote
0
answers
197
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
135
views
Periodic background task in Flutter with less than a minutr frequency
I have read some tutorials about background with flutter: background_fetch, workmanager and so on.
Their all have the issue that the minimum frequency is 15minutes.
That don't even fullfil the ...
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 ...
1
vote
1
answer
485
views
How can I update the existing service from flutter background service?
I'm adding a few details (maximum 3) to my shared preferences. Additionally, I have a background service. Whenever a new detail is added to the shared preferences, I call the background service. ...
0
votes
1
answer
388
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://...
2
votes
1
answer
2k
views
stop flutter_background_service when app is killed flutter
How can I stop the flutter_background_service when the app is killed by the user?
final _androidConfiguration = AndroidConfiguration(
onStart: _onStart,
autoStart: true,
isForegroundMode: ...
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
1
answer
2k
views
Flutter App Crash Unexpectedly because of Flutter Background
I have some issues with my Flutter Android app, every time I run and build the app, it crashes, I guess it has to do with the Flutter background dependencies i add to the pubspec.yaml file
Package of ...
0
votes
0
answers
709
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
367
views
Flutter Back Button and Show Exit Confirm in Flutter App
I am working on a webview app . there is a functionality to show an alert on exit app but it is show on every page back of my web view . i want to show the exit dialog if the web view has the last ...
0
votes
1
answer
293
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. ...
0
votes
2
answers
242
views
Background Bluetooth Device Discovery Error with flutter_bluetooth_serial and flutter_blue
I am currently working on a Flutter application that involves Bluetooth device discovery in the background. To achieve this, I have tried using the flutter_bluetooth_serial package in combination with ...
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
322
views
how to change icon of initialize flutter_background_service?
how to change icon of initialize flutter_background_service?
`Future initializeService() async {
final service = FlutterBackgroundService();
const AndroidNotificationChannel channel = ...
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? ...
1
vote
0
answers
1k
views
Flutter Background Service not Stopping when App is removed from Task Manager
After starting the background service and removing the app from the task manager.After again opening the app and trying to stop the service using the button. It does not work.
Although It Shows the ...
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
78
views
How to push notifications in the background (even when the app is closed), when a boolean flag in firebase database is set to true in flutter?
I want to push a notification in both foreground and background in a flutter app when a bool flag is set to true. I gone through the example given in flutter_background_service package but I can't ...
1
vote
0
answers
789
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
1
answer
661
views
Timer is not accurate when app is in background for too long
I was able to successfully implement a countup timer using Timer.periodic().
If I switch between apps or take the app in the background for 30 seconds, current duration of the timer is still accurate.
...
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
0
answers
204
views
How to run timer in the background even the app is killed in flutter?
I am trying to make the application send a notification when a specified period has elapsed, and this works well when the application is in the background, but when the application is closed, it does ...
1
vote
1
answer
534
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 ...
0
votes
0
answers
41
views
ReactNative HeadlessJS equivalent in Flutter
I am looking for ReactNative HeadlessJS equivalent solution in Flutter to trigger dart code from native side in background!
For example, I want to define in the 'Android side' a BroadcastReceiver with ...
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 ...