app.ScheduleJob Running Custom functions

112 views
Skip to first unread message

Nii Darko Darkoh

unread,
Jun 2, 2021, 4:45:29 PM6/2/21
to DroidScript
Can the app.ScheduleJob be used to run custom functions 
in Droidscript? For instance I have created a function that checks for updates every 20 minutes.
I want to know that if this is possible, does the function have to be in a service.js file?
Thanks.

Steve Garman

unread,
Jun 2, 2021, 4:49:46 PM6/2/21
to DroidScript
The code that is to be run by app.ScheduleJob has to be in a Job.js file

Nii Darko Darkoh

unread,
Jun 2, 2021, 6:33:54 PM6/2/21
to DroidScript

Okk, so Steve in case I have a function called get updates() in a file called jobs.js, 
how do I call the scheduler to run this function?

Steve Garman

unread,
Jun 2, 2021, 6:56:54 PM6/2/21
to DroidScript
There is information about the job scheduler in the release notes for DroidScript 2.06
headline number 1

It points out that it is a Premium feature so I suggest Premium users who have questions about it ask them in the Premium group

Nii Darko Darkoh

unread,
Jun 3, 2021, 3:27:56 AM6/3/21
to DroidScript
Steve, I did not see any code that can be used for what I wanted.
What you gave does not show how to call the function from the job.js file.
Can you please give something more specific to my need?
Thanks.

Steve Garman

unread,
Jun 3, 2021, 10:24:13 AM6/3/21
to DroidScript
You asked about app.ScheduleJob() and I pointed you to the only public information about it

app.ScheduleJob() is a Premium Only feature

If you have a current Premium subscription please post a question in the premium group and I will reply with some simple instructions on how to get more information about how the method works

If you don't have a current Premium subscription and don't intend to buy one then the answer is that the feature is no use to you

We don't post explicit instructions about how to use Premium Only features in this group because doing so is inappropriate

Reply all
Reply to author
Forward
0 new messages