85 questions
0
votes
0
answers
63
views
How to make overlay windows be displayed on the screen in a flutter app even if the app is closed
I am building a Flutter app called NotiBac that helps students memorize history dates and events for the BAC exam by showing them in random popup overlays. The app has two parts: Lists Management, ...
0
votes
1
answer
89
views
Workmanager task running every 15 minutes even when I configure it to run less often
I use workmanager package to schedule background tasks, I have this setup for setting background autobackup task to run eeither daily, weekly or monthly, but it runs every 15 minutes not matter what ...
0
votes
0
answers
38
views
Calling on workmanger to do background tasks still freezes the app UI
When the workmanager calls the callbackDispatcher, the app UI freezes for a moment and any heavy work will continue to freeze it. It can be mitigated by using compute for the heavy computations, but ...
2
votes
0
answers
189
views
Why does Flutter WorkManager show the error: "Could not resolve main entrypoint function" and multiple FlutterJNI warnings?
Problem : I'm trying to implement background tasks in my Flutter app to add users online database when device is online using WorkManager. However, after initilaizing the WorkManager and running the ...
0
votes
0
answers
51
views
Flutter: I can't get workmanager and dependency injection to work
In my Flutter app I fetch about 20,000 items from my Supabase backend and then save it my local storage using Floor. Fetching is fast but looping through is what takes a lot of time and its bad on UX.
...
0
votes
1
answer
71
views
The method 'isScheduledByUniqueName' isn't defined for the type 'Workmanager'. Flutter
getting error The method 'isScheduledByUniqueName' isn't defined for the type 'Workmanager'. Try correcting the name to the name of an existing method, or defining a method named '...
0
votes
1
answer
196
views
Workmanager inputData is null when trying to retrieve in background task Flutter
I'm having trouble passing and retrieving inputData in Flutter's Workmanager. I'm trying to send some data (like id and date) when registering a task, but when I try to access the inputData in the ...
0
votes
0
answers
171
views
Background API Calls Stopping When Screen Is Off on Some Android Devices Despite Proper Settings
I am working on an flutter app, where we need to send the user's location (latitude and longitude) to our server every 20-30 seconds in the background. The server checks if the user is within a ...
1
vote
0
answers
156
views
Flutter: Workmanager Backgroundtast Registration failing in IOS
I am developing an app with flutter which requires to have repeatedly notifications (using local_notifications package). For Android everything is working properly with the code and the background ...
0
votes
1
answer
120
views
MissingPluginException(No implementation found for method createNewNotification on channel awesome_notifications)
I am trying to send a notification using Awesome notification plug in whenever a background task is successfully completed using Workmanager plug-in. Having the Workmanager work on iOS is a pain, but ...
0
votes
1
answer
199
views
How to use hive with workmanager in flutter?
In application background state, I want to fetch some data from API then store them into Hive database. for running task in background, I use workmanager package and added necessary code to fetch data ...
0
votes
1
answer
133
views
Flutter app crashing when attempting to register one-off task
By "crash" I mean the UI becomes unresponsive. The app does not close and no errors are shown in the VSCode Debug Console.
In main() I'm initializnig my callbackDispatcher:
void main() {
...
1
vote
0
answers
78
views
Throw exception when putFile to Firebase Storage in background using WorkManager Flutter in IOS
I am encountering an issue with putFile in Firebase Storage when running in the background.
Everything works fine in the foreground, but it's not functioning in the background.
Please see the attached ...
2
votes
1
answer
456
views
How to Use WorkManager Plugin Version 0.6.x for Flutter?
I’m currently using the workmanager plugin for Flutter, and I’ve come across multiple references suggesting the use of version 0.6.x of the plugin for improved functionality and bug fixes. However, ...
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
1
answer
199
views
Unhandled Exception: [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()
I initialized Firebase inside main, and I need to access user data inside workmanager to provide the user with personalized notification, but workmanager for some reason works synchronously at the ...
1
vote
1
answer
1k
views
Type 'WorkmanagerPlugin' has no member 'registerBGProcessingTask' iOS
I'm trying to integrate WorkManager in iOS (it already works for me on android)
When I run the project, it gives me the following error:
`Type 'WorkmanagerPlugin' has no member '...
0
votes
1
answer
470
views
How can I acces SQLite database from task in Workmanager?
Im trying to do a periodic background task that uploads some information, the information that i need is in local sqlite database but I cant acces it like i do out of the workmanager task, it gives me ...
4
votes
1
answer
3k
views
Periodic Background Tasks in Flutter IOS
I want to execute some background task in Flutter when the app is not in opened state. It is either in background or in terminated state. The requirement is that i want to fetch the device location ...
2
votes
1
answer
603
views
Flutter flutter_background_service not start always when app is in killed state
Sometime background service start if app is in killed state, but sometimes background service stop with error: Flutter engine disconnected. Connected engine count 0
Main function
void main() async {
...
1
vote
0
answers
359
views
Cannot play audio from background with just_audio_background flutter
I am not able to play local audio from the background.
I have a Workmanager which runs periodically and should play a sound if necessary. This means that I start the audio from the background on the ...
1
vote
0
answers
117
views
audioplayers not working when app in background flutter
Is the audioplayers plugin meant to work when app is in background?
I am calling this line await player.play(AssetSource(audioFilePlath)); when app is in background and no sound is played.
The same ...
0
votes
1
answer
236
views
Update external values with WorkManager
I have a provider where I have a list of tasks, it happens that, I want to implement a way in which after a specific time, I would like to remove a task from the list.
class TaskProvider extends ...
2
votes
1
answer
263
views
Flutter BLoC et workmanager : how to make unique repositories initialisation pattern?
I use the BLoC, and workmanager libraries.
Actually, the code runs fine. But, looks like smell code.
My problem :
I have to initialise all my repositories for the MultiRepositoryProvider which wraps ...
0
votes
0
answers
823
views
Flutter workmanager error Domain=BGTaskSchedulerErrorDomain Code=3 "(null)" on iOS
i'm trying to use workermanger with flutter about background service on ios.
So this is my plist
Now this is my AppDelegate on xcode:
import UIKit
import Flutter
import workmanager
@...
0
votes
0
answers
176
views
Buildcontext in backgroundtask in flutter
I want to show periodic notification using workmanager.I need context to navigate when user tap on notification but context is not available in background task.How to solve this issue.I have passed ...
2
votes
0
answers
87
views
How can I use other plugins in workmanager with flutter?
I have an Android plugin in my Flutter project used to access the backend.
In my MainActivity.kt, I have :
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
...
3
votes
0
answers
337
views
Flutter get data from Firebase with workmanager
Is it possible to get data from Firebase using the WorkManager dependency?
I tried to use Stream Builder but for some reason I can't get the data using the WorkManager. If there is a way, can you help ...
0
votes
0
answers
132
views
Flutter automatically update data in firebase database with workmanager
Is it possible to schedule a time to update a field (periodically) in the Firebase database using Workmanager instead of using Cloud Function?
There are two Timestamps in the database. One is static, ...
2
votes
1
answer
722
views
I am using workmanager package for Home screen widget app for running background tasks
I am getting error only in release mode but when i try the same in debug method it runs fine and fetched periodic data once for every 15 mins.
The error i encountered after building apk is
E/flutter (...
1
vote
0
answers
423
views
Workmanager starts itself again when app is killed in flutter
I am using workmanager to compress and upload videos in my app in background. The issue is, I wanted to process to run even when app is minimized. It was easily done using this. But in one phone, the ...
2
votes
0
answers
788
views
Flutter Workmanager IOS oneofftask not working
I'm trying to run a one-off task using the work manager plugin. Works fine on android, but on IOS I'm running into some issues.
I have set up as per the documentation here https://github.com/...
0
votes
1
answer
252
views
workmanager and firebase giving error while sending push notification
i am using firebase cloud messaging to send a push notification.I want to schedule the notification using workmanager package.I have also tried with zoneschedule method of flutter local notification ...
1
vote
1
answer
2k
views
Issue with package workmanager flutter
I have some problem when use package workmanager. Here is error:
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(unhandledMethod("registerPeriodicTask") error, ...
0
votes
0
answers
441
views
Implementing WorkManager in Flutter for Receiving Background Notifications in an App
I'm developing an application in Flutter and I would like to add a feature that allows receiving background notifications for new orders, even when the app is closed or in the background. After ...
0
votes
1
answer
194
views
Geolocator+ Workmanager location is not updating when app is in background
I used Workmanager + Geolocator to update the location of the driver every minute, the program works and updates everything and sends it to the server, but when the application is running in the ...
1
vote
1
answer
370
views
No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() when using Flutter WorkManager
I am having a work manager where i register a one off task like below
Workmanager().registerOneOffTask(
"SyncCartIdsToFirestore-${DateTime.now()}",
"firestore",
...
0
votes
0
answers
961
views
How to get context in flutter Workmanager
Am trying to implement Workmanager in flutter code and need context inside the function.
void callbackDispatcher() {
Workmanager().executeTask((taskName, inputData) async {
await AuthController....
1
vote
1
answer
77
views
Unhandled Exception: MissingPluginException(No implementation found for method getAndroidId on channel samples.flutter.dev/battery)
I trying to call native methods in background service but it throws me an exception.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation ...
0
votes
0
answers
191
views
Is there any way of running periodic fetch task in flutter IOS (fcm push notification is not receiving sometime)
I tried workmanager package to run periodic task It works fine in android but for ios Its not running is there anything like Is it possible in native swift or c or Am I doing something wrong in ios ...
1
vote
1
answer
915
views
WorkManager NetworkType.CONNECTED constraint met even if I disabled internet connectivity, while using VPN apps causing unexpected retry scheduling
VPN applications seem to break WorkManager's NetworkType.CONNECTED constraint in my app. Because I have set setRequiredNetworkType(NetworkType.CONNECTED) of work manager request explicitly. However, ...
4
votes
2
answers
8k
views
Show flutter local notification when firebase notification received in foreground and background
I am trying to show flutter local notification when receiving firebase notification in background, foreground and terminated states of app. i am trying to resolve this using work manager package and ...
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
2
answers
2k
views
get location updates every 15 mins
I want to get updates on my location every 15 mins even when the phone sleeps and when the app is minimized. I am currently using workmanager and geolocator to get it but it doesn't work. It kept ...
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
0
answers
484
views
Flutter WorkManager Pigeon -> Unable to establish connection on channel
I have been using Pigeon to call Android native side for data. However when i try to do the same thing in a WorkManager task, it just throws PlatformException(channel-error, Unable to establish ...
1
vote
0
answers
222
views
Unable to schedule Background Task in Flutter iOS properly
I have been working on an application that needs to change the state of some program joined by user after a specific duration. I have been using workmanager plugin for that purpose and it has been ...
1
vote
0
answers
364
views
callbackDispatcher method not responding while using Workmanager().registerOneOffTask in IOS
I am trying to run workmanager package on IOS. It works fine on android but doesn't work on IOS. I am using iphone 14 to test. I did setup for ios following iosSetup.
callbackDispatcher doesn't ...
2
votes
0
answers
983
views
Flutter workmanager with home_widget working in debug and profile, but not in Android build APK
I have a todo app built in Flutter and intended only for Android. I built a home screen widget for it (using the home_widget package in Flutter) to allow users to see a list of tasks and check them ...
1
vote
1
answer
829
views
Flutter How to know Workmanager has finished
I use Flutter with the plugin Workmanager. I did not find a way to know if the background task has finished for registerOneOffTask. I had ideas with RxSharedPreferences that I write something from the ...