Only working at foreground,not working at background!
Opened this issue · 1 comments
CreazyJack commented
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 commented
Have you solved it