-
Notifications
You must be signed in to change notification settings - Fork 395
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
onRun() is never called #14
Comments
I just had the same problem and I think it's because of what you pass in the constructor. In your case, you are passing a That means you'll need to pass in the values you need directly or create a serializable object that holds those values. From your code sample it looks like you don't need tl;dr - pass only serializable things in. |
Use transient keyword for fields which can't be serialize like Context |
yep, you are passing context to a persistent app. Instead, make your Application class singleton and grab it from there. See #18 , I'll add a getContext method in a future release. |
onRun() is never called for me. I require Network and have ACCESS_NETWORK_STATE set in my Manifest.
This is my Job:
this is how I called it
jobManager.addJobInBackground(new HTTPJobExecution(s, context)); //s is a simple String
an how i initialized it:
jobManager = new JobManager(context);
even if I delete
requireNetwork()
and everything inonRun()
(except a Log for check) it is not calledThe text was updated successfully, but these errors were encountered: