flutter_workmanager icon indicating copy to clipboard operation
flutter_workmanager copied to clipboard

feat: add isScheduled call

Open mx1up opened this issue 1 year ago • 2 comments

checks whether a period task is scheduled. Otherwise, there is no way to know whether some work you previously might have scheduled, is actually scheduled or not.

Since periodic tasks are android only, this call is also android only.

fixes #534

related #475

mx1up avatar Feb 04 '24 18:02 mx1up

Hello, @mx1up ,

I need this too, when will it be ready to release?

zzzh avatar Feb 18 '24 07:02 zzzh

to me it's ready, just waiting for one of the maintainers to chime in ;)

mx1up avatar Feb 19 '24 14:02 mx1up

to me it's ready, just waiting for one of the maintainers to chime in ;)

Cool, looks like someone was sleeping, for weeks!

zzzh avatar Feb 28 '24 02:02 zzzh

Hey @mx1up, thank you for adding the isScheduledByUniqueName() method. Can we get the state of the task, instead of just a boolean telling if the work is scheduled or not, by implementing the native getWorkInfosForUniqueWork() to flutter. That would be a great addition. Please look into it if you have time.

Prince2347X avatar Apr 02 '24 04:04 Prince2347X

@mx1up could you please rebase & update the inline docs so it's clear this is a Android-only method?

ened avatar Apr 08 '24 21:04 ened