如何检查是否在 Firebase 作业调度程序中安排了作业?以下代码用于作业调度程序 api -
public static boolean isJobServiceOn( Context context, int JOB_ID ) {
JobScheduler scheduler = (JobScheduler) context.getSystemService( Context.JOB_SCHEDULER_SERVICE ) ;
boolean hasBeenScheduled = false ;
for ( JobInfo jobInfo : scheduler.getAllPendingJobs() ) {
if ( jobInfo.getId() == JOB_ID ) {
hasBeenScheduled = true ;
break ;
}
}
return hasBeenScheduled ;
}
firebase 工作调度程序中是否有类似的东西?