我已经尝试过堆栈溢出,但人们只添加了 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/