Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add isScheduled call #535

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Conversation

mx1up
Copy link
Contributor

@mx1up mx1up commented Feb 4, 2024

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 mx1up changed the title add isScheduled call feat: add isScheduled call Feb 4, 2024
@zzzh
Copy link

zzzh commented Feb 18, 2024

Hello, @mx1up ,

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

@mx1up
Copy link
Contributor Author

mx1up commented Feb 19, 2024

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

@zzzh
Copy link

zzzh commented Feb 28, 2024

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

Cool, looks like someone was sleeping, for weeks!

@Prince2347X
Copy link

Prince2347X commented Apr 2, 2024

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.

@ened
Copy link
Collaborator

ened commented Apr 8, 2024

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

@ened ened merged commit 6a09b41 into fluttercommunity:main Apr 8, 2024
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

check if periodic task is scheduled
5 participants