-
Notifications
You must be signed in to change notification settings - Fork 16
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
Wendy not syncing periodically #60
Comments
Hey there, @essieM. Welcome to Wendy! I am sorry you have been having this issue. The problem is that the documentation is not complete. I did not realize this until now! Wendy does not run periodically on it's own. You need to use something like workmanager to run all Wendy tasks periodically. |
Will you be adding sample code to show a quick example of how this would work with Wendy? |
I will add to the docs eventually. Right now I am spending all of my development time on this task. These official docs on workmanager are pretty good to help you setup workmanager. it does not take a lot of code. When workmanager executes, your WorkManager Job class needs to run |
Thanks for the pointers. I think that gives me an idea of what's needed. |
Awesome. Enjoy Wendy!
|
So I've just configured Wendy on my app and have followed the sample code provided. I'm however noticing that, after the sync is done the first time, it doesn't happen again. I'm calling the sync method the first time a user logs in.
I'm still learning about the library, but my assumption was that as long as I've configured and initialized it in my application class, then configured the
PendingTasksJob
class as well, Wendy would be running every 15 min or whatever period of time this is set to.My
PendingTasksJob
class looks as follows, just like in the sample code provided:`internal class PendingTasksJob : Job() {
}`
Am I missing something else? I would truly appreciate some help with this.
Thanks.
The text was updated successfully, but these errors were encountered: