Skip to content
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

Only working at foreground,not working at background! #157

Open
CreazyJack opened this issue Apr 26, 2020 · 1 comment
Open

Only working at foreground,not working at background! #157

CreazyJack opened this issue Apr 26, 2020 · 1 comment

Comments

@CreazyJack
Copy link

it working surely,but it can only working at foreground,i'm sad...

registerJob = () => { BackgroundJob.schedule({ jobKey: 'myJob', // 切换到后台时,安排作业 period: 1000, // 运行作业的频率,这个数字不准确 exact: true, allowWhileIdle: true, persist: true, allowExecutionInForeground: true, }) .then(() => console.log('注册后台成功!')) .catch((err) => console.log(err)); };

@wy10
Copy link

wy10 commented Aug 5, 2021

Have you solved it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants