Question. How to recall onAdded() after reboot application
iandreyshev opened this issue · 2 comments
iandreyshev commented
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
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
@kalpeshp0310 I mean onRun()
method