yigit / android-priority-jobqueue

A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
3.4k stars 395 forks source link

Question. How to recall onAdded() after reboot application #435

Open iandreyshev opened 6 years ago

iandreyshev commented 6 years ago

My actions: 1 Create persist job with requireNetwork flag 2 Pass Job to Manager 3 Job start 4 Force stop application 6 Off internet 5 Run application

Now job not started. What can I do to notify jobs about application start ?

kalpeshp0310 commented 6 years ago

What do you mean by Job start, do you mean on run method called of the job? Also onAdded() will be only called once in lifetime of job. It is only called after job is persisted in queue.

iandreyshev commented 6 years ago

@kalpeshp0310 I mean onRun() method