com.umeng.message.UmengMessageCallbackHandlerService.a(UmengMessageCallbackHandlerService.java:162) at com.umeng.message.service.JobIntentServicea.a(JobIntentService.java :235) at com.umeng.message.service.JobIntentServicea.doInBackground(JobIntentService.java:227)
Android Oreo 中的后台进程【中文教学视频】 相关文档 Android 8.0 行为变化 后台运行限制 隐式广播限制例外清单 定位服务限制 作业以及定时作业 JobScheduler 的改进 JobIntentService
(官方建议使用JetPack组件中的WorkManager或者JobIntentService类代替它) 使用Thread和HandlerThread时, 为了使效果更好, 建议设置Thread的优先级偏低一点
出发点: 可以从WorkManager的调度方式进行分析 参考简答: WorkManager是一种用于在后台执行任务的库,它建立在JobScheduler、AlarmManager和JobIntentService
若消息接收需要必要后台工作,如后台数据同步,您的应用须要通过 Firebase Job Dispatcher 或者 JobIntentService 调度任务。
java.lang.IllegalStateException: Not allowed to start service Intent 的错误,解决办法是使用 startForegroundService 或者 JobIntentService
java.lang.IllegalStateException: Not allowed to start service Intent 的错误,解决办法是使用 startForegroundService 或者 JobIntentService
java.lang.IllegalStateException: Not allowed to start service Intent 的错误,解决办法是使用 startForegroundService 或者 JobIntentService
IntentService 是 Service 的子类,被设计用于运行在 Worker 线程中,可以串行处理多个阻塞的 Intent 请求;API-30 以后被标记为废弃接口,建议使用 WorkManager 或者 JobIntentService