android - 强制关闭应用程序后,工作经理定期工作无法在中文 ROM 上工作

标签 android androidx android-workmanager

我已经尝试过堆栈溢出,但人们只添加了 Android 文档,说它可以工作,但它没有我还在谷歌的问题跟踪器中提出了一个问题 here .

我已经在 Android 版本上进行了测试:6、7、8 和工作管理器 1.0.0-alpha11、1.0.0-alpha12

如果有人找到运行定期作业的任何解决方案,请发表评论,这将是一个很大的帮助。谢谢

最佳答案

这是一个已知问题,as commented in this other bug on Google's issuetracker ,在这些情况下,WorkManager 无能为力。

正如这个错误中所评论的那样:

...if a device manufacturer has decided to modify stock Android to force-stop the app, WorkManager will stop working (as will JobScheduler, alarms, broadcast receivers, etc.). There is no way to work around this. Some device manufacturers do this, unfortunately, so in those cases WorkManager will stop working until the next time the app is launched.

关于android - 强制关闭应用程序后,工作经理定期工作无法在中文 ROM 上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53721111/

相关文章:

android - 协程 worker : interrupt doWork() on cancelPendingIntent action

android - WorkManager - 永久移除周期性 worker

android - 如何在 gradle javadoc 任务中设置指向外部 AndroidX 引用的链接?

android - Workmanager 监听器立即被调用

android - 应用程序图标未显示在操作栏上

java - 如何在 Eclipse 和 Android Studio 之间共享 Java 源代码?

java - Android ItemTouchHelper 部分滑动

java - 如何在 Android 中显示本地 html 文件?

android - androidx中 'design'的依赖是什么?

java - 如何解决 Android Studio 中缺少 androidx 组件的问题?