Ramzan Tingku
Ramzan Tingku
I have got my ans. I need to create different `backgroundFetchHeadlessTask` and register it for different task id. i.e `BackgroundFetch.registerHeadlessTask(backgroundFetchHeadlessTask1);` `BackgroundFetch.registerHeadlessTask(backgroundFetchHeadlessTask2);` `BackgroundFetch.registerHeadlessTask(backgroundFetchHeadlessTask3);` `void backgroundFetchHeadlessTask1() async { var taskId = "task...
As I am not sure, if this is the right way for registering different tasks, I am keeping this open. If there is other best approaches, please share .
Can you please enlighten me how can I execute different types of headless task? i.e I need to perform different type of execution with different task id.
All I need to know how to perform different type of execution with different task id even if the app is cleared from background. There is nothing to share from...
Finding no solution I made some workaround. ``` List prevPositions = [0,0]; int lostPositions = 0; void initPlayer() { audioPlayer = AudioPlayer(); audioPlayer?.onPositionChanged.listen((Duration duration) { int positionChanged = duration.inMilliseconds; logPrint('onPrevPositionChanged:${prevPositions[0]}');...
> I did more or less the same as @Manuito83 but i'm feel dirty 😄 I think it's one of worst workaround I have ever done, but it works. When...